You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2026/09/09 18:09:30 UTC
Re: [PR] [fix][ml] Preserve ledger properties when closing ledger [pulsar]
lhotari commented on PR #26227:
URL: https://github.com/apache/pulsar/pull/26227#issuecomment-5606546646
This fix is also relevant to branch-4.0, even though that branch does not contain PIP-404 per-ledger properties. Its `LedgerInfo` already contains `offloadContext`, which is also discarded when closing a ledger rebuilds `LedgerInfo` from scratch. Copying the existing metadata before refreshing entries, size, and timestamp preserves that context too.
The local branch-4.0 backport uses the older protobuf builder API (`oldInfo.toBuilder()` and `build()`) and adapts the regression coverage to verify that offload context survives ledger closure/rollover. Compilation and the focused regression tests passed.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org