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

Assert the tenant to be active in unoffload_timeline #9539

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Oct 28, 2024

Currently, all callers of unoffload_timeline ensure that the tenant the unoffload operation is called on is active. We rely on it being active as we activate the timeline below and don't want to race with the activation code of the tenant (in the worst case, activating a timeline twice).

Therefore, add this assertion.

Part of #8088

@arpad-m arpad-m requested a review from a team as a code owner October 28, 2024 13:07
@arpad-m arpad-m requested a review from yliang412 October 28, 2024 13:07
Copy link

github-actions bot commented Oct 28, 2024

5300 tests run: 5078 passed, 0 failed, 222 skipped (full report)


Flaky tests (2)

Postgres 17

Code coverage* (full report)

  • functions: 31.3% (7687 of 24580 functions)
  • lines: 48.7% (60458 of 124107 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
cfe5327 at 2024-10-29T00:45:38.575Z :recycle:

Copy link
Contributor

@yliang412 yliang412 left a comment

Choose a reason for hiding this comment

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

LGTM. test_sharding_compaction[4-16] failure not caused by this patch

@arpad-m arpad-m enabled auto-merge (squash) October 29, 2024 00:02
@arpad-m arpad-m merged commit 62f5d48 into main Oct 29, 2024
82 checks passed
@arpad-m arpad-m deleted the arpad/unoffload_timeline_active_tenant branch October 29, 2024 00:36
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