You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "void-ptr974 (via GitHub)" <gi...@apache.org> on 2026/07/25 04:22:38 UTC
[PR] [fix][broker] Fix delayed-delivery index data loss when trimming overlapping buckets [pulsar]
void-ptr974 opened a new pull request, #26240:
URL: https://github.com/apache/pulsar/pull/26240
### Motivation
When bucket trimming selects an immutable bucket that overlaps the first active ledger, RangeMap returns a clipped range key. The delete path still deletes the complete bucket snapshot, so the delayed-delivery index cannot be recovered after a broker restart.
### Modifications
- Select only buckets whose complete immutable range ends before the first active ledger.
- Add a regression test for a bucket that overlaps the first active ledger.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
- Ran the bucket trimming tests covering complete deletion, delete failure, no orphaned buckets, and overlapping buckets.
- Ran pulsar-broker checkstyleMain and checkstyleTest.
### Does this pull request potentially affect one of the following parts:
- [ ] Dependencies (add or upgrade a dependency)
- [ ] The public API
- [ ] The schema
- [ ] The default values of configurations
- [ ] The threading model
- [ ] The binary protocol
- [ ] The REST endpoints
- [ ] The admin CLI options
- [ ] The metrics
- [ ] Anything that affects deployment
--
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
Re: [PR] [fix][broker] Fix delayed message index data loss when trimming overlapping bucket snapshots [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #26240:
URL: https://github.com/apache/pulsar/pull/26240
--
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