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

refactor: Timeline layer flushing #7993

Merged
merged 10 commits into from
Jun 10, 2024
Merged

refactor: Timeline layer flushing #7993

merged 10 commits into from
Jun 10, 2024

Conversation

koivunej
Copy link
Member

@koivunej koivunej commented Jun 7, 2024

The new features have deteriorated layer flushing, most recently with #7927. Changes:

  • inline Timeline::freeze_inmem_layer to the only caller
  • carry the TimelineWriterState guard to the actual point of freezing the layer
  • remove duplicate flush_frozen_layer in favor of splitting the flush_frozen_layers_and_wait
    • this requires starting the flush loop earlier for checkpoint_distance < initdb size tests

@koivunej koivunej requested a review from VladLazar June 7, 2024 11:30
Copy link

github-actions bot commented Jun 7, 2024

3198 tests run: 3056 passed, 0 failed, 142 skipped (full report)


Code coverage* (full report)

  • functions: 31.5% (6601 of 20962 functions)
  • lines: 48.5% (51094 of 105428 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
d9d5cbe at 2024-06-10T16:23:48.820Z :recycle:

Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

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

Looks fairly low risk. Thanks for following up with this!

pageserver/src/tenant/timeline.rs Show resolved Hide resolved
pageserver/src/tenant/timeline.rs Outdated Show resolved Hide resolved
Base automatically changed from joonas/another_attempt_at_flushing_and_pgvector to main June 10, 2024 13:50
@koivunej koivunej marked this pull request as ready for review June 10, 2024 14:16
@koivunej koivunej requested a review from a team as a code owner June 10, 2024 14:16
@koivunej koivunej requested a review from jcsp June 10, 2024 14:16
@koivunej koivunej merged commit e466927 into main Jun 10, 2024
64 checks passed
@koivunej koivunej deleted the joonas/refactor_flushing branch June 10, 2024 16:34
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