dlg99 commented on code in PR #16664:
URL: https://github.com/apache/pulsar/pull/16664#discussion_r925031346
##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerFactoryImpl.java:
##########
@@ -893,7 +893,18 @@ private void deleteManagedLedgerData(BookKeeper bkc,
String managedLedgerName, M
DeleteLedgerCallback callback, Object ctx) {
Futures.waitForAll(info.ledgers.stream()
.filter(li -> !li.isOffloaded)
- .map(li ->
bkc.newDeleteLedgerOp().withLedgerId(li.ledgerId).execute())
+ .map(li ->
bkc.newDeleteLedgerOp().withLedgerId(li.ledgerId).execute()
+ .handleAsync((result, ex) -> {
+ if (ex != null) {
+ int rc = BKException.getExceptionCode(ex);
+ if (rc ==
BKException.Code.NoSuchLedgerExistsOnMetadataServerException
+ || rc ==
BKException.Code.NoSuchLedgerExistsException) {
+ return null;
Review Comment:
fixed
--
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]