Skip to content

Commit 71330c4

Browse files
shibdsrinath-ctds
authored andcommitted
[improve][broker] Change topic exists log to warn (apache#24116)
(cherry picked from commit 9ea171d) (cherry picked from commit 1832fe4)
1 parent d699029 commit 71330c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ protected CompletableFuture<Void> internalCreateNonPartitionedTopicAsync(boolean
341341
.thenCompose(__ -> pulsar().getBrokerService().getTopicIfExists(topicName.toString()))
342342
.thenCompose(existedTopic -> {
343343
if (existedTopic.isPresent()) {
344-
log.error("[{}] Topic {} already exists", clientAppId(), topicName);
344+
log.warn("[{}] Topic {} already exists", clientAppId(), topicName);
345345
throw new RestException(Status.CONFLICT, "This topic already exists");
346346
}
347347
return pulsar().getBrokerService().getTopic(topicName.toString(), true, properties);

0 commit comments

Comments
 (0)