You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/12/31 03:48:20 UTC

[GitHub] [bookkeeper] liudezhi2098 opened a new issue #2230: bookie reads messages in batches very slowly, it takes about 300 milliseconds to read 100

liudezhi2098 opened a new issue #2230: bookie reads messages in batches very slowly, it takes about 300 milliseconds to read 100
URL: https://github.com/apache/bookkeeper/issues/2230
 
 
   **BUG REPORT**
   
   ***Describe the bug***
   
   bookie reads messages in batches very slowly, it takes about 300 milliseconds to read 100
   
   - SingleDirectoryDbLedgerStorage
   
   
               while (count < readAheadCacheBatchSize && currentEntryLogId == firstEntryLogId) {
                   ByteBuf entry = entryLogger.internalReadEntry(orginalLedgerId, -1, currentEntryLocation,
                           false /* validateEntry */);
   
   
   - EntryLogger
   
           long thisLedgerId = sizeBuff.getLong(4);
           long thisEntryId = sizeBuff.getLong(12);
           if (thisLedgerId != ledgerId || thisEntryId != entryId) {
               throw new EntryLookupException.WrongEntryException(
                       thisEntryId, thisLedgerId, ledgerId, entryId, entryLogId, pos);
           }
   
   because entryId = -1, an exception must be thrown here

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [bookkeeper] eolivelli closed issue #2230: bookie reads messages in batches very slowly, it takes about 300 milliseconds to read 100

Posted by GitBox <gi...@apache.org>.
eolivelli closed issue #2230: bookie reads messages in batches very slowly, it takes about 300 milliseconds to read 100
URL: https://github.com/apache/bookkeeper/issues/2230
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services