Skip to content

Commit

Permalink
fix LedgerHandle ensembleChangeCounter not used. (#4103)
Browse files Browse the repository at this point in the history
### Motivation
fix #4096

ensemble change counter not inc when ensemble change .

### Changes
inc counter when ensemble change.
  • Loading branch information
lifepuzzlefun authored Jan 8, 2024
1 parent 62ea072 commit 13e7efa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1913,6 +1913,7 @@ void handleBookieFailure(final Map<Integer, BookieId> failedBookies) {

void ensembleChangeLoop(List<BookieId> origEnsemble, Map<Integer, BookieId> failedBookies) {
int ensembleChangeId = numEnsembleChanges.incrementAndGet();
ensembleChangeCounter.inc();
String logContext = String.format("[EnsembleChange(ledger:%d, change-id:%010d)]", ledgerId, ensembleChangeId);

// when the ensemble changes are too frequent, close handle
Expand Down

0 comments on commit 13e7efa

Please sign in to comment.