michaeljmarshall opened a new issue, #18249: URL: https://github.com/apache/pulsar/issues/18249
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation While researching the solution for #18236, it would have been very helpful to have access to a cursor's persisted `PositionInfo` in Bookkeeper. In that bug's case, the persisted data in bookkeeper didn't align with the `PositionInfo` persisted in zookeeper, and verifying that was essential to finding the bug. ### Solution I see two options: 1. Create a new admin http endpoint that allows a user with super user privileges permission to get a range of persisted entries from a cursor's ledger. The primary benefit of this solution is that it gives us the ability to investigate historical `PositionInfo`, which could be very helpful. 2. Update the `stats-internal` admin http result to also include the most recently persisted `PositionInfo`. One risk for this solution is that it increases the cost of `stats-internal`. However, that command is already a troubleshooting command, so that should be fine. ### Alternatives _No response_ ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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]
