Skip to content

Commit 06bedcf

Browse files
authored
MINOR: Fix log statement formatting in KafkaAdminClient (#21990)
Fix log statement to use the local variable `defaultApiTimeoutMs` instead of the uninitialized field `this.defaultApiTimeoutMs`. Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
1 parent 112686c commit 06bedcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ private int configureDefaultApiTimeoutMs(AdminClientConfig config) {
657657
" must be no smaller than the value of " + AdminClientConfig.REQUEST_TIMEOUT_MS_CONFIG + ".");
658658
} else {
659659
log.warn("Overriding the default value for {} ({}) with the explicitly configured request timeout {}",
660-
AdminClientConfig.DEFAULT_API_TIMEOUT_MS_CONFIG, this.defaultApiTimeoutMs,
660+
AdminClientConfig.DEFAULT_API_TIMEOUT_MS_CONFIG, defaultApiTimeoutMs,
661661
requestTimeoutMs);
662662
return requestTimeoutMs;
663663
}

0 commit comments

Comments
 (0)