Skip to content

Commit d72dc04

Browse files
authored
[improve][broker] Change the log level from error to info when throwing NotAllowedException (#25130)
1 parent 40953cb commit d72dc04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ && isCompactionSubscription(subscriptionName)) {
10891089
close();
10901090
} else if (ex.getCause() instanceof BrokerServiceException.ConnectionClosedException) {
10911091
log.warn("[{}][{}] Connection was closed while the opening the cursor", topic, subscriptionName);
1092+
} else if (ex.getCause() instanceof BrokerServiceException.NotAllowedException) {
1093+
log.info("[{}][{}] Not allowed to create subscription: {}", topic, subscriptionName,
1094+
ex.getCause().getMessage());
10921095
} else {
10931096
log.error("[{}] Failed to create subscription: {}", topic, subscriptionName, ex);
10941097
}

0 commit comments

Comments
 (0)