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

[datanode]The datanode process still exists when the port 6667 has been taken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • master, 1.1.0-SNAPSHOT
    • None
    • Core/Server
    • None
    • 2023-2-Storage, 2023-3-Storage

    Description

      [datanode]The datanode process still exists when the port 6667 has been taken

      Build: master 47cb83d2ec

      reproduction:

      The port 6667 has been taken by other problem, I start datanode with default configuration.

       

      expect:

      The process of datanode would be killed when starting datanode failed.

       

      2023-03-01 16:21:52,078 [main] ERROR o.a.i.db.service.DataNode:184 - Fail to start server
      org.apache.iotdb.commons.exception.StartupException: Failed to start [RPC ServerService], because [IoTDB: failed to start RPC ServerService, because Could not create ServerSocket on address iotdb-45/172.20.70.45:6667.]
              at org.apache.iotdb.commons.service.ThriftService.startService(ThriftService.java:132)
              at org.apache.iotdb.commons.service.ThriftService.start(ThriftService.java:69)
              at org.apache.iotdb.commons.service.RegisterManager.register(RegisterManager.java:51)
              at org.apache.iotdb.db.service.DataNode.setUpRPCService(DataNode.java:551)
              at org.apache.iotdb.db.service.DataNode.doAddNode(DataNode.java:172)
              at org.apache.iotdb.db.service.DataNodeServerCommandLine.run(DataNodeServerCommandLine.java:81)
              at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
              at org.apache.iotdb.db.service.DataNode.main(DataNode.java:145)
      2023-03-01 16:21:52,079 [main] INFO  o.a.i.db.service.DataNode:859 - Deactivating IoTDB DataNode...
      2023-03-01 16:21:52,079 [main] INFO  o.a.i.c.s.ThriftService:155 - IoTDB: RPC ServerService isn't running now
      2023-03-01 16:21:52,079 [main] INFO  o.a.i.c.s.ThriftService:158 - IoTDB: closing Internal Service...
      2023-03-01 16:21:52,079 [main] ERROR o.a.i.c.s.ThriftService:168 - IoTDB: close Internal Service failed because:
      java.lang.InterruptedException: null
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1302)
              at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
              at org.apache.iotdb.commons.service.ThriftService.stopService(ThriftService.java:163)
              at org.apache.iotdb.commons.service.ThriftService.stop(ThriftService.java:74)
              at org.apache.iotdb.commons.service.IService.waitAndStop(IService.java:36)
              at org.apache.iotdb.commons.service.RegisterManager.deregisterAll(RegisterManager.java:60)
              at org.apache.iotdb.db.service.DataNode.deactivate(DataNode.java:862)
              at org.apache.iotdb.db.service.DataNode.stop(DataNode.java:831)
              at org.apache.iotdb.db.service.DataNode.doAddNode(DataNode.java:190)
              at org.apache.iotdb.db.service.DataNodeServerCommandLine.run(DataNodeServerCommandLine.java:81)
              at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
              at org.apache.iotdb.db.service.DataNode.main(DataNode.java:145)
      2023-03-01 16:21:52,080 [main] WARN  o.a.i.d.e.c.s.CompactionTaskManager:204 - CompactionThreadPool can not be closed in 10000 ms
      2023-03-01 16:21:52,080 [pool-16-IoTDB-Compaction-3] WARN  o.a.i.d.e.c.s.CompactionWorker:54 - CompactionThread-2 terminates becau 

      Attachments

        1. iotdb-5606-logs.tar.gz
          20 kB
          changxue

        Activity

          People

            xingtanzjr Jinrui Zhang
            changxue changxue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: