File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3829,12 +3829,13 @@ private void checkAddTimeout() {
38293829 }
38303830 OpAddEntry opAddEntry = pendingAddEntries .peek ();
38313831 if (opAddEntry != null ) {
3832+ final long finalAddOpCount = opAddEntry .addOpCount ;
38323833 boolean isTimedOut = opAddEntry .lastInitTime != -1
38333834 && TimeUnit .NANOSECONDS .toSeconds (System .nanoTime () - opAddEntry .lastInitTime ) >= timeoutSec ;
38343835 if (isTimedOut ) {
38353836 log .error ("Failed to add entry for ledger {} in time-out {} sec" ,
38363837 (opAddEntry .ledger != null ? opAddEntry .ledger .getId () : -1 ), timeoutSec );
3837- opAddEntry .handleAddTimeoutFailure (opAddEntry .ledger , opAddEntry . addOpCount );
3838+ opAddEntry .handleAddTimeoutFailure (opAddEntry .ledger , finalAddOpCount );
38383839 }
38393840 }
38403841 }
You can’t perform that action at this time.
0 commit comments