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

Move load_timeline_metadata into separate function #9080

Merged
merged 9 commits into from
Sep 21, 2024

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Sep 20, 2024

Moves the per-timeline code to load timeline metadata into a new dedicated function called load_timeline_metadata. The old load_timeline_metadata becomes load_timelines_metadata.

Split out of #8907

Part of #8088

@arpad-m arpad-m requested a review from a team as a code owner September 20, 2024 14:06
pageserver/src/tenant.rs Outdated Show resolved Hide resolved
pageserver/src/tenant.rs Outdated Show resolved Hide resolved
pageserver/src/tenant.rs Outdated Show resolved Hide resolved
Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

per the threads.

Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

It should work now just fine. It took me a while to understand why did you make it an fn instead of async fn.

@arpad-m arpad-m enabled auto-merge (squash) September 20, 2024 15:57
Copy link

github-actions bot commented Sep 20, 2024

5020 tests run: 4856 passed, 0 failed, 164 skipped (full report)


Flaky tests (6)

Postgres 17

Postgres 15

Code coverage* (full report)

  • functions: 31.9% (7432 of 23316 functions)
  • lines: 49.9% (59921 of 120123 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
89872e7 at 2024-09-21T12:47:59.449Z :recycle:

Only the future is instrumented with the timeline_id
@arpad-m
Copy link
Member Author

arpad-m commented Sep 20, 2024

test failure is legit:

thread 'tenant::tests::timeline_load_with_ancestor' panicked at pageserver/src/tenant.rs:1347:9:
missing extractors: [ConstExtractor { field_name: "timeline_id" }]

made commit to fix it.

Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

move assert into future

Aah yes, makes sense.

@koivunej
Copy link
Member

Failures on Postgres 17

I don't understand this.

Failures on Postgres 15

This is more normal.

@arpad-m arpad-m merged commit a3800dc into main Sep 21, 2024
78 of 83 checks passed
@arpad-m arpad-m deleted the arpad/load_timeline_metadata branch September 21, 2024 12: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