From e20c23d05b56ffb49f61d9e42fa805e2ee20b3d4 Mon Sep 17 00:00:00 2001 From: danpi Date: Sat, 4 Jan 2025 02:04:24 +0800 Subject: [PATCH] [fix][admin] Fix exception thrown in getMessageId method (#23784) Co-authored-by: houbonan (cherry picked from commit 1f7a79f4c240c8075c217ac417dffa5bc72a4d5f) (cherry picked from commit b738d14372187317346ebc540ae6a394b5614241) --- .../apache/pulsar/broker/admin/impl/PersistentTopicsBase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java index 5320446619963..6e65830330f6f 100644 --- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java +++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java @@ -2906,6 +2906,7 @@ public void readEntryFailed(ManagedLedgerException exception, if (exception instanceof ManagedLedgerException.LedgerNotExistException) { results.completeExceptionally( new RestException(Status.NOT_FOUND, "Message id not found")); + return; } results.completeExceptionally(new RestException(exception)); }