-
Notifications
You must be signed in to change notification settings - Fork 476
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
feat(compaction): avoid count_deltas()
call if nothing changed
#6868
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ove backwards This PR enforces aspects of `Timeline::repartition` that were already true at runtime: - it's not called concurrently, so, bail out if it is anyway (see comment why it's not called concurrently) - the `lsn` should never be moving backwards over the lifetime of a Timeline object, because last_record_lsn() can only move forwards over the lifetime of a Timeline object part of #6861
…bail-on-concurrent-call
…bail-on-concurrent-call
…bail-on-concurrent-call
…lame/avoid-count-deltas-if-no-changes
2466 tests run: 2267 passed, 78 failed, 121 skipped (full report)Failures on Postgres 16
Failures on Postgres 15
Failures on Postgres 14
Test coverage report is not availableThe comment gets automatically updated with the latest test results
98d0bca at 2024-02-21T19:33:39.656Z :recycle: |
Base automatically changed from
problame/repartition-bail-on-concurrent-call
to
main
February 26, 2024 10:22
5 tasks
superseded by #7230 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
repartition()
rebuildscreate_image_layers
The skipping logic is simple: if we've seen the same repartioning & layermap version before, bail early.
The underlying invariant is that only these two inputs determine whether we would produce any new image layers.
Effectively, this is a cache invalidation problem.
These are notoriously hard to get right, and even harder to maintain.
Counter-measures that we could implement in a later PR:
part of #6861