Skip to content

Commit

Permalink
Fix producer stucks on creating ledger timeout
Browse files Browse the repository at this point in the history
Signed-off-by: xiaolong.ran <rxl@apache.org>
  • Loading branch information
sijie authored and wolfstudy committed Aug 12, 2020
1 parent efa984b commit e2fbf31
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -3197,6 +3197,7 @@ protected void asyncCreateLedger(BookKeeper bookKeeper, ManagedLedgerConfig conf
if (log.isDebugEnabled()) {
log.debug("[{}] Ledger already created when timeout task is triggered", name);
}
cb.createComplete(BKException.Code.TimeoutException, null, ledgerCreated);
}
cb.createComplete(BKException.Code.TimeoutException, null, ledgerCreated);
}, config.getMetadataOperationsTimeoutSeconds(), TimeUnit.SECONDS);
Original file line number Diff line number Diff line change
@@ -95,6 +95,7 @@
import org.apache.bookkeeper.mledger.ManagedLedgerFactoryConfig;
import org.apache.bookkeeper.mledger.Position;
import org.apache.bookkeeper.mledger.impl.ManagedCursorImpl.VoidCallback;
import org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.State;
import org.apache.bookkeeper.mledger.impl.MetaStore.MetaStoreCallback;
import org.apache.bookkeeper.mledger.proto.MLDataFormats;
import org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo;

0 comments on commit e2fbf31

Please sign in to comment.