caozj1011 opened a new pull request, #11848: URL: https://github.com/apache/iotdb/pull/11848
## Description If the iotdb contains unflushed data, suddenly outages (for example, kill -9). After an outage, the data directory is copied to the iotdb of another directory, and data is lost after startup. This PR solves the problem of lost data. ## How to test 1. Start an iotdb and write one piece of data,` insert into root.test.d1 (s1) values (1) `. 2. Run the kill -9 command to stop the ConfigNode and DataNode processes. 3. Copy the 'data' directory into a new iotdb and start it (the new iotdb will not be the same as the previous path). 4. Verify that data exists. ## Before this PR The data is missing. It can't be found. ## After this PR The data is recovered and can be found. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
