Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Broker] Change broker producer fence log level #14196

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -1399,8 +1399,15 @@ private void buildProducerAndAddTopic(Topic topic, long producerId, String produ

producers.remove(producerId, producerFuture);
}).exceptionally(ex -> {
log.error("[{}] Failed to add producer to topic {}: producerId={}, {}",
remoteAddress, topicName, producerId, ex.getMessage());
if (ex.getCause() instanceof BrokerServiceException.ProducerFencedException) {
if (log.isDebugEnabled()) {
log.debug("[{}] Failed to add producer to topic {}: producerId={}, {}",
remoteAddress, topicName, producerId, ex.getCause().getMessage());
}
} else {
log.warn("[{}] Failed to add producer to topic {}: producerId={}, {}",
Demogorgon314 marked this conversation as resolved.
Show resolved Hide resolved
remoteAddress, topicName, producerId, ex.getCause().getMessage());
}

producer.closeNow(true);
if (producerFuture.completeExceptionally(ex)) {
Expand Down