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

Data increases abnormally after IoTDB restarts

    XMLWordPrintableJSON

Details

    • 2021-10-DragonGate

    Description

      1. Description
        If the IoTDB is shutdown when compacting, when IoTDB is restored, there will be an abnormal increase in data.
      2. Cause
        When SGP perform recover process, it new a RestorableTsFileIOWriter for each tsfile. However, it doesn't close the writer after using it. So the output stream to the file will be kept in process. When recovering compaction, if the system tries to delete a tsfile, exception will occur because the handler of the file isn't removed. The new compaction process of same file will continue to write on this undeleted file.

      Then, the undeleted data will be kept in the target file.

      Attachments

        1. screenshot-2.png
          47 kB
          Liuxuxin
        2. screenshot-1.png
          166 kB
          Liuxuxin

        Issue Links

          Activity

            People

              ThuLiuxuxin Liuxuxin
              ThuLiuxuxin Liuxuxin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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