athanatos opened a new issue #1737: EntryMemTable.newEntry retains reference to 
passed ByteBuffer array, can cause corruption on journal replay
URL: https://github.com/apache/bookkeeper/issues/1737
 
 
   Journal.scanJournal reuses the same ByteBuffers for each entry, but (if the 
entry is large enough) EntryMemTable retains a reference.  The result is that 
if any entry is large enough, the bytes that get written to the entryLog upon 
flush will be a prefix of the last entry replayed from that journal file.  This 
will in general corrupt any such entries.  Fix seems relatively simple, PR will 
follow.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to