aloyszhang opened a new pull request #12266:
URL: https://github.com/apache/pulsar/pull/12266
Fixes #12265
### Motivation
fix ttl expiry does not take effect
### Modifications
When `ManagedLedgerImpl.getPositionAfterN`
1. check whether the `currentLeder` contains entry when count the entries
of `currentLeder`
2. check the result and `LAC` first before return
### Verifying this change
add test in `ManagedLedgerTest.testGetPositionAfterN`
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): ( no)
- The public API: ( no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
No-doc-need since this pull request is a inner bug fix.
--
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]