Skip to content

Commit

Permalink
[fix][ml]: subscription props could be lost in case of missing ledger…
Browse files Browse the repository at this point in the history
… during recovery (#22637)
  • Loading branch information
nicoloboschi authored May 20, 2024
1 parent 47fd1a3 commit b5bc390
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ protected void recoverFromLedger(final ManagedCursorInfo info, final VoidCallbac
log.error("[{}] Error opening metadata ledger {} for cursor {}: {}", ledger.getName(), ledgerId, name,
BKException.getMessage(rc));
// Rewind to oldest entry available
initialize(getRollbackPosition(info), Collections.emptyMap(), Collections.emptyMap(), callback);
initialize(getRollbackPosition(info), Collections.emptyMap(), cursorProperties, callback);
return;
} else if (rc != BKException.Code.OK) {
log.warn("[{}] Error opening metadata ledger {} for cursor {}: {}", ledger.getName(), ledgerId, name,
Expand Down

0 comments on commit b5bc390

Please sign in to comment.