You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2021/09/29 11:38:19 UTC

[iotdb] branch cluster- updated: [cluster-refactor] fix the bug that data heartbeat handler is null (#4055)

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

tanxinyu pushed a commit to branch cluster-
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/cluster- by this push:
     new 4a5a29d  [cluster-refactor] fix the bug that data heartbeat handler is null (#4055)
4a5a29d is described below

commit 4a5a29d094341ea593bf828da8299928ffd9b655
Author: Jianyun Cheng <ch...@outlook.com>
AuthorDate: Wed Sep 29 19:37:47 2021 +0800

    [cluster-refactor] fix the bug that data heartbeat handler is null (#4055)
    
    Co-authored-by: chengjianyun <ch...@360.cn>
---
 .../org/apache/iotdb/cluster/server/raft/AbstractDataRaftService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/server/raft/AbstractDataRaftService.java b/cluster/src/main/java/org/apache/iotdb/cluster/server/raft/AbstractDataRaftService.java
index 23fcc59..73be5d8 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/server/raft/AbstractDataRaftService.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/server/raft/AbstractDataRaftService.java
@@ -28,7 +28,7 @@ public abstract class AbstractDataRaftService extends AbstractRaftService {
 
   @Override
   public void initSyncedServiceImpl(Object serviceImpl) {
-    if (impl != null) {
+    if (serviceImpl != null) {
       impl = (DataGroupServiceImpls) serviceImpl;
     }
     super.initSyncedServiceImpl(serviceImpl);
@@ -36,7 +36,7 @@ public abstract class AbstractDataRaftService extends AbstractRaftService {
 
   @Override
   public void initAsyncedServiceImpl(Object serviceImpl) {
-    if (impl != null) {
+    if (serviceImpl != null) {
       impl = (DataGroupServiceImpls) serviceImpl;
     }
     super.initAsyncedServiceImpl(serviceImpl);