Repository navigation
[improve] PIP-404: Introduce per ledger properties - #24076
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24076 +/- ##
============================================
+ Coverage 73.57% 74.26% +0.69%
+ Complexity 32624 32570 -54
============================================
Files 1877 1866 -11
Lines 139502 144843 +5341
Branches 15299 16545 +1246
============================================
+ Hits 102638 107574 +4936
+ Misses 28908 28765 -143
- Partials 7956 8504 +548
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
liudezhi2098
approved these changes
Apr 16, 2025
nodece
requested changes
Apr 21, 2025
jiazhai
approved these changes
Apr 28, 2025
jiazhai
left a comment
Member
There was a problem hiding this comment.
+1. over all LGTM. This change adds an optional field, it is safe for the existing code.
A small suggestion: If we will have more than 1 property in per ledger, It would be better to have batched operations (e.g. set/get/removeLedgerProperties), looks like the PerLedgerProperties related operations
are a little heavy (operate the data in ZK, need locks...).
nodece
approved these changes
Apr 28, 2025
lhotari
reviewed
Apr 28, 2025
lhotari
reviewed
Apr 28, 2025
lhotari
approved these changes
Apr 29, 2025
dao-jun
added a commit
to ascentstream/pulsar
that referenced
this pull request
May 8, 2025
(cherry picked from commit 146907e)
1 of 15 tasks
KannarFr
pushed a commit
to CleverCloud/pulsar
that referenced
this pull request
Sep 22, 2025
walkinggo
pushed a commit
to walkinggo/pulsar
that referenced
this pull request
Oct 8, 2025
dao-jun
added a commit
to ascentstream/pulsar
that referenced
this pull request
Apr 1, 2026
(cherry picked from commit 146907e)
dao-jun
added a commit
to ascentstream/pulsar
that referenced
this pull request
Apr 1, 2026
lhotari
pushed a commit
that referenced
this pull request
Jul 25, 2026
…ack completes after a concurrent close (#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
sandeep-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jul 31, 2026
…ack completes after a concurrent close (apache#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (apache#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
sandeep-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jul 31, 2026
…ack completes after a concurrent close (apache#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (apache#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
sandeep-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jul 31, 2026
…ack completes after a concurrent close (apache#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (apache#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
3 of 15 tasks
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Nov 6, 2026
…ack completes after a concurrent close (apache#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (apache#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Nov 16, 2026
…ack completes after a concurrent close (apache#26228) branch-4.0 adaptations: - MLDataFormats is generated by protobuf on this branch (LightProto only from branch-4.2), so the merge uses the immutable LedgerInfo builder API instead of mutating in place. - The upstream tests are omitted: they drive the transform through the per-ledger property API (asyncAddLedgerProperty / asyncGetLedgerProperty) introduced by PIP-404 (apache#24076), which is not present on branch-4.0. On this branch transformLedgerInfo is only reachable from the offload path, which transforms already-closed ledgers, so the concurrent-close race cannot be reproduced here; the change is kept for correctness and to keep the branches aligned. Coverage of the transform callback comes from the existing OffloadPrefixTest / OffloadLedgerDeleteTest suites. (cherry picked from commit 1aa37ff) (cherry picked from commit 1d9dada)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PIP: #23837
Motivation
Introduce per ledger properties
Modifications
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-complete