RobertIndie commented on code in PR #23928:
URL: https://github.com/apache/pulsar/pull/23928#discussion_r1943945215
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java:
##########
@@ -624,7 +624,12 @@ &&
pulsar().getConfig().isCreateTopicToRemoteClusterForReplication()) {
asyncResponse.resume(Response.noContent().build());
})
.exceptionally(ex -> {
- log.error("[{}] Failed to create partitioned topic {}",
clientAppId(), topicName, ex);
+ if (AdminResource.isConflictException(ex)) {
+ log.warn("[{}] Failed to create partitioned topic {}:
{}", clientAppId(), topicName,
Review Comment:
Make sense. Actually, I suggest we don't even need to log these errors
because they are not broker errors and can be reported to the client.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]