nodece opened a new pull request, #21918: URL: https://github.com/apache/pulsar/pull/21918
PIP: #21873 ### Motivation The `org.apache.pulsar.client.admin.Topics` provides `getMessageById(java.lang.String, long, long)` method to get the message, which returns one message. If the message id refers to a batch message, we can only get the first message, not all messages. This behavior affects our analysis of messages by the message id. ### Modifications - Add `getMessagesById` and `getMessagesByIdAsync` methods to the `org.apache.pulsar.client.admin.Topics` interface. - Implement new methods in the `org.apache.pulsar.client.admin.internal.TopicsImpl` ### Verifying this change The `testGetMessagesId` test has been added. ### 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]
