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

refactor: do not upsert copied-files set if both purge and force are enabled #10855

Merged
merged 3 commits into from
Mar 30, 2023

Conversation

dantengsky
Copy link
Member

@dantengsky dantengsky commented Mar 30, 2023

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

Summary

during the execution of copy-into, if both purge and force are enabled, do not upsert the table's copied-files set in meta server.

NOTE:

since the table's copied-files set will NOT be upsert in meta service, if both purge and force are enabled.

later/parallel executions of copy-into are taking the risk of data duplication.

Closes #10854

@vercel
Copy link

vercel bot commented Mar 30, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Mar 30, 2023 at 1:12PM (UTC)

@mergify mergify bot added the pr-refactor this PR changes the code base without new features or bugfix label Mar 30, 2023
@dantengsky dantengsky changed the title refactor: do not upset copied-files set if both purge and force are enalbed refactor: do not upsert copied-files set if both purge and force are enabled Mar 30, 2023
@dantengsky dantengsky marked this pull request as ready for review March 30, 2023 13:01
@youngsofun
Copy link
Member

@dantengsky
Copy link
Member Author

@youngsofun
Copy link
Member

seems result of https://github.com/datafuselabs/databend/blob/main/tests/suites/1_stateful/00_copy/00_0004_copy_with_max_files.sh should be updated

thanks for reminding

rest lgtm as long as the results of this tests is expected

@mergify mergify bot merged commit 14e0e4c into databendlabs:main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: adjust behavior of force mode copy into
4 participants