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

avoid running duplicated IotDB server/node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Others

    Description

      Backgroud: 

      1) Sometimes, customers wrongly run 2 IoTDB servers porcess from same directory at same time, which can cause Tsfiles' damage.

      2)  Another JIRA:  https://issues.apache.org/jira/browse/IOTDB-3306 has done some change.  IOTDB-3306's code change let rpc-server starting as early as possible, so that the second IoTDB server proccess can detect listening port conflict before changing Tsfile and then exit.

      3) But  IOTDB-3306's fix will let IoTDB server open rpc service too early, which can casue some client task failure.

      =========================================================================

      After discussion with HouHaoNan, we think there is better solution than IOTDB-3306's fix.  New solution is to change start-server.sh to detect whether 1 IoTDB server porcess from same directory has existed.

       

      Attachments

        Issue Links

          Activity

            People

              jamber001 Bo Zhang
              jamber001 Bo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: