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

deleting *.tmp WAL files on startup #10317

Merged
merged 4 commits into from Mar 24, 2022
Merged

Conversation

Howie59
Copy link
Contributor

@Howie59 Howie59 commented Feb 20, 2022

Signed-off-by: lihaowei haoweili35@gmail.com

Resolves #10245

Signed-off-by: lihaowei <haoweili35@gmail.com>
tsdb/db.go Outdated Show resolved Hide resolved
tsdb/db_test.go Outdated Show resolved Hide resolved
tsdb/db.go Outdated Show resolved Hide resolved
Signed-off-by: lihaowei <haoweili35@gmail.com>
Copy link
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

Another suggestion: isTmpBlockDir -> isTmpDir

tsdb/db_test.go Outdated Show resolved Hide resolved
@Howie59
Copy link
Contributor Author

Howie59 commented Mar 10, 2022

@codesome PTAL

tsdb/db.go Outdated Show resolved Hide resolved
tsdb/db.go Outdated Show resolved Hide resolved
@Harkishen-Singh
Copy link
Contributor

I think the issue also involves cleaning up meta.json.tmp file which is not being cleaned here. Hence, the PR description should not say resolves as that will close the issue upon merge.

Copy link
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

LGTM. Can you please fix the DCO? I will merge after that

@codesome
Copy link
Member

I think the issue also involves cleaning up meta.json.tmp file which is not being cleaned here. Hence, the PR description should not say resolves as that will close the issue upon merge.

I see that the issue is titled (and describes) deleting checkpoint dirs, so it should be fine to close it. (the meta.json.tmp file stuff is in code comment, which is still intact)

Signed-off-by: lihaowei <haoweili35@gmail.com>
Signed-off-by: lihaowei <haoweili35@gmail.com>
@Howie59
Copy link
Contributor Author

Howie59 commented Mar 16, 2022

LGTM. Can you please fix the DCO? I will merge after that

done

@codesome codesome merged commit 1291ec7 into prometheus:main Mar 24, 2022
@Howie59 Howie59 deleted the fix-10245 branch March 24, 2022 10:54
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.

Proposal: Clean up leftover checkpoint tmp directories during startup
3 participants