Skip to content

[core] Automatically detect changes to the expiration policy. #5944

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zhoulii
Copy link
Member

@zhoulii zhoulii commented Jul 23, 2025

Purpose

Linked issue: close #5943

Tests

API and Format

Documentation

@zhoulii zhoulii force-pushed the auto-detect-conf branch from ccde03f to 232d135 Compare July 23, 2025 09:22
@@ -79,6 +87,12 @@ public ExpireSnapshots config(ExpireConfig expireConfig) {

@Override
public int expire() {
TableSchema latestTableSchema = this.schemaManager.latest().get();
Copy link
Contributor

Choose a reason for hiding this comment

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

This will bring additional IO access. Can you introduce a new option to describe whether a refresh is needed?

@zhoulii zhoulii force-pushed the auto-detect-conf branch from 232d135 to a431454 Compare July 28, 2025 03:49
@zhoulii zhoulii force-pushed the auto-detect-conf branch from a431454 to 9fc3b16 Compare July 28, 2025 04:16
@@ -443,6 +443,12 @@ public InlineElement getDescription() {
.withDescription(
"The maximum number of snapshots allowed to expire at a time.");

public static final ConfigOption<Boolean> DETECT_EXPIRATION_SETTING_ENABLED =
key("detect-expiration-setting.enabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

snapshot.expire.detect-config.enabled?

@zhoulii
Copy link
Member Author

zhoulii commented Jul 28, 2025

Thanks for the review @JingsongLi . All comments have been addressed, Please take another look when you have a moment.

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.

[Feature] Automatically detect changes to the expiration policy.
2 participants