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

Enable partition-store db flush on shutdown #2365

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Enable partition-store db flush on shutdown #2365

merged 2 commits into from
Nov 27, 2024

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Nov 26, 2024

This lets task center request the graceful cancellation of the root-future of managed runtimes. Note that it'll not wait for the shutdown to complete. If this is needed, then partition-processor managed will need to wait for the result to come when it receives the cancellation signal on its own cancellation token.
Copy link
Contributor

@pcholakov pcholakov left a comment

Choose a reason for hiding this comment

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

Neat! Thanks!

Comment on lines +453 to +458
info!(
db = %self.name,
"{} column families flushed in {:?}",
cfs_to_flush.len(),
start.elapsed(),
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link

github-actions bot commented Nov 26, 2024

Test Results

  7 files  ±0    7 suites  ±0   4m 31s ⏱️ +4s
 47 tests ±0   46 ✅ ±0  1 💤 ±0  0 ❌ ±0 
182 runs  ±0  179 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit d5e55bd. ± Comparison against base commit 07882c3.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

You've very elegantly solved this problem @AhmedSoliman. +1 for merging and testing how it behaves in the wild :-)

@AhmedSoliman AhmedSoliman merged commit d5e55bd into main Nov 27, 2024
11 checks passed
@AhmedSoliman AhmedSoliman deleted the pr2365 branch November 27, 2024 08:44
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.

3 participants