Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-4772

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0-SNAPSHOT
    • None
    • Tools/Others
    • 2022-11-Cluster

    Description

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

      reproduction:

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

       

      actual result:

      1. show cluster  shows all confignode and datanode is running
      2. but error occurs when create timeseries

       

      建议:

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

      Attachments

        Issue Links

          Activity

            People

              cpaulyz yanze chen
              changxue changxue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: