Skip to content

Commit 626f2c8

Browse files
authored
change topic lookup redirect log level (#7215)
Fix #7189 Changes change the WebApplicationException log level from error to debug
1 parent 2aff473 commit 626f2c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,6 +2624,11 @@ protected void internalGetLastMessageId(AsyncResponse asyncResponse, boolean aut
26242624
try {
26252625
validateReadOperationOnTopic(authoritative);
26262626
topic = getTopicReference(topicName);
2627+
} catch (WebApplicationException wae) {
2628+
log.debug("[{}] Failed to get last messageId {}, redirecting to other brokers.",
2629+
clientAppId(), topicName, wae);
2630+
resumeAsyncResponseExceptionally(asyncResponse, wae);
2631+
return;
26272632
} catch (Exception e) {
26282633
log.error("[{}] Failed to get last messageId {}", clientAppId(), topicName, e);
26292634
resumeAsyncResponseExceptionally(asyncResponse, e);

0 commit comments

Comments
 (0)