You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/12/29 09:05:25 UTC

[iotdb] branch master updated: fix some typo & make code more understandable (#2360)

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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 83e2722  fix some typo &  make code more understandable (#2360)
83e2722 is described below

commit 83e272205b04017f0320c511ef6649a8f5e63154
Author: HouliangQi <ne...@163.com>
AuthorDate: Tue Dec 29 17:05:03 2020 +0800

    fix some typo &  make code more understandable (#2360)
---
 .../main/java/org/apache/iotdb/cluster/server/member/RaftMember.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/server/member/RaftMember.java b/cluster/src/main/java/org/apache/iotdb/cluster/server/member/RaftMember.java
index a54c260..cf012d8 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/server/member/RaftMember.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/server/member/RaftMember.java
@@ -607,7 +607,7 @@ public abstract class RaftMember {
         return client;
       }
     }
-    return client;
+    return null;
   }
 
   public NodeCharacter getCharacter() {
@@ -709,7 +709,7 @@ public abstract class RaftMember {
         } catch (InterruptedException e) {
           Thread.currentThread().interrupt();
         } catch (ExecutionException e) {
-          logger.error("Catup task exits with unexpected exception", e);
+          logger.error("{}: Catch up task exits with unexpected exception", name, e);
         }
       });
     }