Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #167 from jimjh/patch-1
Browse files Browse the repository at this point in the history
reset pKey when message#key is null
  • Loading branch information
HenryCaiHaiying committed Feb 21, 2015
2 parents 017b61c + 3695ea5 commit daf9686
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -116,6 +116,9 @@ public boolean getNext(EtlKey key, BytesWritable payload, BytesWritable pKey) th
bytes = new byte[origSize];
buf.get(bytes, buf.position(), origSize);
pKey.set(bytes, 0, origSize);
} else {
log.warn("Received message with null message.key(): " + msgAndOffset);
pKey.setSize(0);
}

key.clear();
Expand Down

0 comments on commit daf9686

Please sign in to comment.