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

[core] add commit.force-expire option #2968

Closed
wants to merge 1 commit into from
Closed

[core] add commit.force-expire option #2968

wants to merge 1 commit into from

Conversation

zhoulii
Copy link
Member

@zhoulii zhoulii commented Mar 7, 2024

Purpose

Linked issue: close #2967

Sort compact only supports write-only mode, during which expiration operations are not performed. When users write data in write-only mode and use sort compact for sorting and merging, expired deletion cannot be executed. This PR add an option to force expiration.

@zhoulii zhoulii changed the title [core] add force-expire option [core] add commit.force-expire option Mar 7, 2024
@zhoulii
Copy link
Member Author

zhoulii commented Mar 7, 2024

Hi @Aitozi , could you please take a look at this PR? Thanks.

@@ -378,6 +378,12 @@ public class CoreOptions implements Serializable {
.defaultValue(MemorySize.ofMebiBytes(128))
.withDescription("Target size of a file.");

public static final ConfigOption<Boolean> FORCE_EXPIRE =
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it is better to introduce an option: write.responsible-matters, similar option, I'm not good at naming it, for reference only.

In the option, user can specific what the write does.

Copy link
Member Author

Choose a reason for hiding this comment

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

how about commit.force.hooks or commit.force.triggers ?

@zhoulii zhoulii closed this by deleting the head repository Jun 19, 2024
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] support an option to force expiration.
2 participants