You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2022/10/27 03:27:00 UTC

[jira] [Created] (IOTDB-4772) error would occurs when starting datanode 2 times and all nodes seems normal with show cluster

changxue created IOTDB-4772:
-------------------------------

             Summary: error would occurs when starting datanode 2 times and all nodes  seems normal with show cluster
                 Key: IOTDB-4772
                 URL: https://issues.apache.org/jira/browse/IOTDB-4772
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Tools/Others
    Affects Versions: 0.14.0-SNAPSHOT
            Reporter: changxue
            Assignee: Jialin Qiao
         Attachments: image-2022-10-27-11-15-54-884.png

error would occurs when starting datanode 2 times and all nodes  seems normal with show cluster

reproduction:
 # start a 3C3D iotdb cluster successfully
 # run start-datanode.sh on 1 node without stopping it

 

actual result:
 # show cluster  shows all confignode and datanode is running
 # but error occurs when create timeseries !image-2022-10-27-11-15-54-884.png!

 

建议:
 # 在start-confignode.sh 和 start-datanode.sh 脚本中,应该先判断是否已经有启动的服务,如果有,先停止,然后再启动。
 # 咱们的stop-datanode.sh 内停止服务的方式不对,现状是使用ps然后查找datanode字样。一般通用做法是,在启动时将PID记录在pid文件中,停止时,读取并kill。目前的做法容易误停止其他服务(或者有多个时直接报错)。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)