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 (apache#22637)
  • Loading branch information
nicoloboschi authored and hanmz committed Feb 12, 2025
1 parent 390082c commit 897db37
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 897db37

Please sign in to comment.