You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/03 03:58:57 UTC
[GitHub] [pulsar] zhanghaou commented on a change in pull request #11894: [Issue 11814] fix pulsar admin method:getMessageById. (#11852)
zhanghaou commented on a change in pull request #11894:
URL: https://github.com/apache/pulsar/pull/11894#discussion_r701567534
##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -2170,6 +2170,14 @@ protected void internalGetMessageById(AsyncResponse asyncResponse, long ledgerId
validateReadOperationOnTopic(authoritative);
PersistentTopic topic = (PersistentTopic) getTopicReference(topicName);
ManagedLedgerImpl ledger = (ManagedLedgerImpl) topic.getManagedLedger();
+ if (null == ledger.getLedgerInfo(ledgerId).get()) {
Review comment:
It seems that theres no time-consuming operation, any other point needs to consider?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org