lhotari opened a new pull request #10404: URL: https://github.com/apache/pulsar/pull/10404
### Motivation When reviewing the state management of some recycled instances, I came across an issue in PositionImplRecyclable where the ackSet field is not cleared when reused. It is unclear what the impact of this inconsistency is. PositionImplRecyclable is used in [ManagedCursorImpl's recyclePositionRangeConverter](https://github.com/apache/pulsar/blob/bbd4e5d546397c982e4eff7d7ae3440c7c2a79fb/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L162-L167). ### Modifications - clear the ackSet field before and after reusing a PositionImplRecyclable instance. - add a unit test that reproduced the issue before the 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. For queries about this service, please contact Infrastructure at: [email protected]
