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

sync error between different os

    XMLWordPrintableJSON

Details

    • 2021-10-Hou

    Description

      origin from discussion#4001(https://github.com/apache/iotdb/discussions/4001)

      if we want to sync one computer with windows os data to another computer with unix os,
      the sync process will stop, and a error is thrown like this:
      -receiver/10.20.12.142_0583441c495b416d95c9945631bc3eff/data/root.industry.w9/root.industry.w9\0\0\1631930688647-1-0-0.tsfile, type=ADD}
      java.io.IOException: Can not load new tsfile /data/local/iotdb-server/./sbin/../data/data/sync-receiver/10.20.12.142_0583441c495b416d95c9945631bc3eff/data/root.industry.w9/root.industry.w9\0\0\1631930688647-1-0-0.tsfile
      at org.apache.iotdb.db.sync.receiver.load.FileLoader.loadNewTsfile(FileLoader.java:148)
      at org.apache.iotdb.db.sync.receiver.load.FileLoader.handleLoadTask(FileLoader.java:120)
      at org.apache.iotdb.db.sync.receiver.load.FileLoader.lambda$new$0(FileLoader.java:87)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.iotdb.db.exception.StorageEngineException: org.apache.iotdb.db.exception.metadata.IllegalPathException: 10.20.12.142_0583441c495b416d95c9945631bc3eff is not a legal path
      at org.apache.iotdb.db.engine.StorageEngine.getProcessorDirectly(StorageEngine.java:391)
      at org.apache.iotdb.db.engine.StorageEngine.loadNewTsFileForSync(StorageEngine.java:820)
      at org.apache.iotdb.db.sync.receiver.load.FileLoader.loadNewTsfile(FileLoader.java:143)
      ... 7 common frames omitted
      Caused by: org.apache.iotdb.db.exception.metadata.IllegalPathException: 10.20.12.142_0583441c495b416d95c9945631bc3eff is not a legal path
      at org.apache.iotdb.db.metadata.MTree.getStorageGroupNodeByPath(MTree.java:560)
      at org.apache.iotdb.db.metadata.MManager.getStorageGroupNodeByPath(MManager.java:1055)
      at org.apache.iotdb.db.engine.StorageEngine.getProcessorDirectly(StorageEngine.java:387)
      ... 9 common frames omitted
      2021-09-18 10:09:03,790 [pool-9-IoTDB-Load-TsFile-1] INFO o.a.i.d.s.r.l.FileLoader:177 - Sync loading process for 10.20.12.142_0583441c495b416d95c9945631bc3eff has finished.

      Attachments

        Activity

          People

            yschengzi Sicheng Yu
            yschengzi Sicheng Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified