Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue of restarting DataNode to clean up InvalidDataRegion #13535

Merged

Conversation

133tosakarin
Copy link
Contributor

### What changes were proposed in this pull request?

In the previous implementation, only invalid data in the consensus directory was deleted when restarting, resulting in region data that does not belong to the datanode still existing in the data directory.

This PR will completely clean up invalid regions when restarting.

comment log

remove dir before recover

format

format

comment whitespace line

split the step of removing consensus dir and data dir

format

format

format

format

fix

fix

clear walInfo in IoTDBConfig

fix not clear empty dir
Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit a322ab5 into apache:master Sep 18, 2024
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants