1559924775 opened a new issue, #3604: URL: https://github.com/apache/bookkeeper/issues/3604
**BUG REPORT** ***Describe the bug*** we use SortedLedgerStorage+EntryLogManagerForSingleEntryLog. When the entrylog file managed by EntryLogManagerForSingleEntryLog reaches the upper limit, the createNewLog method is executed. This operation is not locked, which will conflict with the addEntry executed in the compaction process, resulting in disordered entryLog file data.   There is a concurrency problem with the two operations shown above. In our case we found this code execution order: 1.logChannel.flush(); 2.logChannel.write(sizeBuffer); 3.logChannel.appendLedgersMap(); 4.logChannel.write(entry); The correct entryLog file format should be like this: header entrySize1+entryData1 entrySize2+entryData2 ... entrySizen+entryDatan ledgersMap The wrong entrylog is as follows: header entrySize1+entryData1 entrySize2+entryData2 ... entrySizen ledgersMap entryDatan @hangc0276 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
