You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2018/05/22 07:15:46 UTC

[kafka] branch trunk updated: MINOR: Remove unnecessary conditional in KafkaAdminClient to fix checkstyle (#5058)

This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 193c779  MINOR: Remove unnecessary conditional in KafkaAdminClient to fix checkstyle (#5058)
193c779 is described below

commit 193c77968251a06b2393d1d286425a4f4ec97d10
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Tue May 22 00:15:40 2018 -0700

    MINOR: Remove unnecessary conditional in KafkaAdminClient to fix checkstyle (#5058)
---
 .../main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java b/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java
index 00f543c..6235918 100644
--- a/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java
+++ b/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java
@@ -577,9 +577,7 @@ public class KafkaAdminClient extends AdminClient {
             // this RPC. That is why 'tries' is not incremented.
             if ((throwable instanceof UnsupportedVersionException) &&
                      handleUnsupportedVersionException((UnsupportedVersionException) throwable)) {
-                if (log.isDebugEnabled()) {
-                    log.debug("{} attempting protocol downgrade and then retry.", this);
-                }
+                log.debug("{} attempting protocol downgrade and then retry.", this);
                 runnable.enqueue(this, now);
                 return;
             }

-- 
To stop receiving notification emails like this one, please contact
ijuma@apache.org.