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(meta): pin & unpin snapshot for mview creation with correct order #5606

Merged
merged 8 commits into from
Sep 29, 2022

Conversation

BugenZhao
Copy link
Member

@BugenZhao BugenZhao commented Sep 28, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

As explained in #5592. This PR introduces a simple SnapshotManager for pinning & unpinning the snapshot during mview creation.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the type/fix Bug fix label Sep 28, 2022
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 2202 files.

Valid Invalid Ignored Fixed
1063 1 1138 0
Click to see the invalid file list
  • src/meta/src/barrier/snapshot.rs

@codecov
Copy link

codecov bot commented Sep 28, 2022

Codecov Report

Merging #5606 (836e92a) into main (960e11b) will increase coverage by 0.00%.
The diff coverage is 79.89%.

@@           Coverage Diff           @@
##             main    #5606   +/-   ##
=======================================
  Coverage   74.24%   74.24%           
=======================================
  Files         915      916    +1     
  Lines      143288   143359   +71     
=======================================
+ Hits       106379   106436   +57     
- Misses      36909    36923   +14     
Flag Coverage Δ
rust 74.24% <79.89%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/batch/src/executor/hash_agg.rs 93.08% <ø> (ø)
src/common/src/array/error.rs 0.00% <0.00%> (ø)
.../src/source/filesystem/s3/source/s3_file_reader.rs 0.00% <0.00%> (ø)
src/meta/src/barrier/progress.rs 15.27% <50.00%> (-2.12%) ⬇️
src/meta/src/barrier/schedule.rs 71.68% <50.00%> (-1.57%) ⬇️
src/meta/src/barrier/mod.rs 85.42% <79.16%> (-0.16%) ⬇️
src/meta/src/barrier/snapshot.rs 81.25% <81.25%> (ø)
src/stream/src/executor/source/reader.rs 94.80% <91.66%> (+0.97%) ⬆️
src/common/src/hash/key.rs 84.54% <100.00%> (+1.01%) ⬆️
src/meta/src/barrier/command.rs 40.13% <100.00%> (+2.10%) ⬆️
... and 13 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
@BugenZhao BugenZhao force-pushed the bz/fix-create-mview-unpin branch from defa449 to 04605fc Compare September 28, 2022 06:58
@BugenZhao BugenZhao marked this pull request as ready for review September 28, 2022 06:58
Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 4d5d0ea into main Sep 29, 2022
@mergify mergify bot deleted the bz/fix-create-mview-unpin branch September 29, 2022 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: BatchQuery executor read with expired epoch under parallel e2e
2 participants