lhotari opened a new pull request, #25044:
URL: https://github.com/apache/pulsar/pull/25044
### Motivation
There's a known issue with replicated subscriptions that the subscription
position doesn't get updated to the remote cluster when the mark delete
position is not updated frequently in the local cluster. This could often
happen when using shared subscriptions which use individual acknowledgements.
### Modifications
- optimize the memory footprint of replication snapshot cache so that more
entries could be kept in memory without consuming significantly more memory
- optimize replication snapshot cache eviction
- when the cache fills up, evict the entry which has the minimum distance
to its adjacent entries in the snapshot list
### TBD
- more tests
- performance optimization
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]