codelipenghui commented on a change in pull request #6331: [Issue 2912][pulsar-admin] add get-message-by-id cmd into pulsar-admin URL: https://github.com/apache/pulsar/pull/6331#discussion_r379779519
########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Subscription.java ########## @@ -79,6 +80,8 @@ default long getNumberOfEntriesDelayed() { CompletableFuture<Entry> peekNthMessage(int messagePosition); + CompletableFuture<Entry> getMessageById(long ledgerId, long entryId); Review comment: If we can use ManagedLedger directly, this method also can be removed. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services