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

v2.0: Invoke ancient slots shrinking only if skipping rewrites is enabled (backport of #3266) #3580

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 11, 2024

Problem

Ancient slots shrinking currently should be done only when skipping rewrites is enabled. However, the entry function to ancient slots shrinking is unconditionally invoked in ABS.

Summary of Changes

Add a guarding check that prevents invocation of ancient slots shrinking unless the skip rewrites is enabled from the command line or by the feature gate.

The backport is necessary because the ancient slot shrinking was added before v2.0 but wasn't disabled by default. The implementation of ancient slot shrinking in v2.0 isn't stable and may cause resource exhaustion by not cleaning up ancient storages sufficiently. To prevent negative performance effects this change disables the ancient slot shrinking by default and guards its invocation by a command line option or the corresponding feature flag.

@mergify mergify bot requested a review from a team as a code owner November 11, 2024 17:11
Copy link

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm.

Copy link

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

@dmakarov dmakarov merged commit 79f23b6 into v2.0 Nov 13, 2024
38 checks passed
@dmakarov dmakarov deleted the mergify/bp/v2.0/pr-3266 branch November 13, 2024 17:08
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.

5 participants