chenhongSZ commented on code in PR #4039:
URL: https://github.com/apache/bookkeeper/pull/4039#discussion_r1316919482


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerFragmentReplicator.java:
##########
@@ -293,7 +293,8 @@ static Set<LedgerFragment> 
splitIntoSubFragments(LedgerHandle lh,
             assert false;
         }
 
-        long numberOfEntriesToReplicate = (lastEntryId - firstEntryId) + 1;
+        long numberOfEntriesToReplicate = firstEntryId == INVALID_ENTRY_ID && 
lastEntryId == INVALID_ENTRY_ID ? 0 :
+                (lastEntryId - firstEntryId) + 1;
         long splitsWithFullEntries = numberOfEntriesToReplicate

Review Comment:
   Your understanding is correct. Our configuration is 
`rereplicationEntryBatchSize=1`
   
   



-- 
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]

Reply via email to