eolivelli commented on a change in pull request #3067:
URL: https://github.com/apache/bookkeeper/pull/3067#discussion_r832973062
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerFragmentReplicator.java
##########
@@ -133,6 +133,16 @@ public LedgerFragmentReplicator(BookKeeper bkc,
ClientConfiguration conf) {
private static final Logger LOG = LoggerFactory
.getLogger(LedgerFragmentReplicator.class);
+ private boolean isEntryExpectedOnDeadBookie(final LedgerHandle lh, Long
eId, Set<Integer> deadBookieIndex) {
+ DistributionSchedule.WriteSet writeSet =
lh.getWriteSetForReadOperation(eId);
Review comment:
we should call `writeSet .recycle()` in a finally block in order to
reduce allocations
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerFragmentReplicator.java
##########
@@ -133,6 +133,16 @@ public LedgerFragmentReplicator(BookKeeper bkc,
ClientConfiguration conf) {
private static final Logger LOG = LoggerFactory
.getLogger(LedgerFragmentReplicator.class);
+ private boolean isEntryExpectedOnDeadBookie(final LedgerHandle lh, Long
eId, Set<Integer> deadBookieIndex) {
Review comment:
why the name is "deadBookieIndex" ? you are passing
"lf.getBookiesIndexes()"
--
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]