Liuxuxin created IOTDB-1911:
-------------------------------

             Summary: Fix data increase after shutting down IoTDB, changing 
data dirs, then recovering it
                 Key: IOTDB-1911
                 URL: https://issues.apache.org/jira/browse/IOTDB-1911
             Project: Apache IoTDB
          Issue Type: Bug
    Affects Versions: master branch
            Reporter: Liuxuxin
            Assignee: Liuxuxin
             Fix For: master branch


# Description
If the IoTDB is shut down when compacting, and user change the data dirs then 
restart IoTDB, the data will increase abnormally.
# Cause
The compaction log records the information of source files and target file 
using their absolute path. If the data dirs is changed, the recover process 
cannot find the target file and source files  correctly, which may lead to the 
failure of deleting target file or source files . Therefore, the new compaction 
process may continue to write on the undeleted target tsfile. The redudant data 
will be kept in target tsfile.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to