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

hold timeline open in background task using gate guard #9825

Conversation

yliang412
Copy link
Contributor

@yliang412 yliang412 commented Nov 20, 2024

Problem

The newly added flush task in #9693 should hold timeline gate open, to avoid doing local IO after timeline shutdown completes.

Solution

Pass timeline gate guard to flush background task. The flush task do not need cancellation token b/c it will automatically shutdown when the front writer task drop the channel.

  • Refactor relevant paths to pass down &Gate instead of GateGuard.

@yliang412 yliang412 requested a review from problame November 20, 2024 15:45
@yliang412 yliang412 marked this pull request as ready for review November 20, 2024 15:45
@yliang412 yliang412 requested a review from a team as a code owner November 20, 2024 15:45
Copy link

github-actions bot commented Nov 20, 2024

6941 tests run: 6632 passed, 1 failed, 308 skipped (full report)


Failures on Postgres 16

  • test_delete_timeline_exercise_crash_safety_failpoints[Check.RETRY_WITHOUT_RESTART-timeline-delete-after-rm]: release-arm64
# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_delete_timeline_exercise_crash_safety_failpoints[release-pg16-Check.RETRY_WITHOUT_RESTART-timeline-delete-after-rm]"
Flaky tests (5)

Postgres 17

Postgres 15

Postgres 14

Test coverage report is not available

The comment gets automatically updated with the latest test results
f5245f1 at 2024-11-27T16:47:30.948Z :recycle:

@yliang412 yliang412 force-pushed the yuchen/double-buffered-writer-timeline-gate branch from 5094556 to 5b11a75 Compare November 25, 2024 05:36
@yliang412 yliang412 requested a review from jcsp November 25, 2024 05:47
@yliang412 yliang412 merged commit b54764b into yuchen/double-buffered-writer Nov 27, 2024
32 of 35 checks passed
@yliang412 yliang412 deleted the yuchen/double-buffered-writer-timeline-gate branch November 27, 2024 15:10
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.

2 participants