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: fix purge test bugs #11210

Merged
merged 2 commits into from
Apr 24, 2023
Merged

fix: fix purge test bugs #11210

merged 2 commits into from
Apr 24, 2023

Conversation

lichuang
Copy link
Contributor

@lichuang lichuang commented Apr 24, 2023

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

Summary

fix: fix purge test bugs

bug reason: in function navigate_for_purge use snapshot.timestamp as purge timestamp, but in list_files use last_modified time to get file list, last_modified sometimes may bigger than snapshot.timestamp, so some files be ignored.

use do_purge instead of sql.

Closes #issue

@vercel
Copy link

vercel bot commented Apr 24, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
databend ⬜️ Ignored (Inspect) Apr 24, 2023 1:49pm

@lichuang lichuang requested review from zhyass and dantengsky April 24, 2023 10:53
@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 24, 2023
Copy link
Member

@zhyass zhyass left a comment

Choose a reason for hiding this comment

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

LGTM

@zhyass zhyass merged commit d0acc8f into databendlabs:main Apr 24, 2023
@lichuang lichuang deleted the fix_purge_test_fail branch May 8, 2023 03:26
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.

3 participants