Skip to content

Commit

Permalink
[improve][broker] backlog quota exceed limit log replaced with debug (
Browse files Browse the repository at this point in the history
apache#22475)

(cherry picked from commit 767f0b2)
  • Loading branch information
mukesh154 authored and mukesh-ctds committed Apr 17, 2024
1 parent 73310b6 commit 631d097
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2942,14 +2942,14 @@ public CompletableFuture<Void> checkBacklogQuotaExceeded(String producerName, Ba
if ((retentionPolicy == BacklogQuota.RetentionPolicy.producer_request_hold
|| retentionPolicy == BacklogQuota.RetentionPolicy.producer_exception)) {
if (backlogQuotaType == BacklogQuotaType.destination_storage && isSizeBacklogExceeded()) {
log.info("[{}] Size backlog quota exceeded. Cannot create producer [{}]", this.getName(),
log.debug("[{}] Size backlog quota exceeded. Cannot create producer [{}]", this.getName(),
producerName);
return FutureUtil.failedFuture(new TopicBacklogQuotaExceededException(retentionPolicy));
}
if (backlogQuotaType == BacklogQuotaType.message_age) {
return checkTimeBacklogExceeded().thenCompose(isExceeded -> {
if (isExceeded) {
log.info("[{}] Time backlog quota exceeded. Cannot create producer [{}]", this.getName(),
log.debug("[{}] Time backlog quota exceeded. Cannot create producer [{}]", this.getName(),
producerName);
return FutureUtil.failedFuture(new TopicBacklogQuotaExceededException(retentionPolicy));
} else {
Expand Down

0 comments on commit 631d097

Please sign in to comment.