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: "optimize purge" may incorrectly delete data of pending txs #8320

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

dantengsky
Copy link
Member

@dantengsky dantengsky commented Oct 19, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

The "optimize table t purge" statement may incorrectly delete data of pending transactions.

While collecting snapshots from storage, snapshots that have bigger timestamps than GC root's, should be excluded.

Fixes #issue

@vercel
Copy link

vercel bot commented Oct 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Oct 19, 2022 at 1:45PM (UTC)

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Oct 19, 2022
@dantengsky dantengsky force-pushed the fix-concurrent-optimize-purge branch from 5cbf3b3 to d89a06d Compare October 19, 2022 13:45
@dantengsky dantengsky marked this pull request as ready for review October 19, 2022 14:26
@BohuTANG BohuTANG merged commit 23f60fb into databendlabs:main Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants