Skip to content

[core][flink] Add option to skip expired partitions in compaction job#7537

Open
lilei1128 wants to merge 2 commits intoapache:masterfrom
lilei1128:compact_optimize
Open

[core][flink] Add option to skip expired partitions in compaction job#7537
lilei1128 wants to merge 2 commits intoapache:masterfrom
lilei1128:compact_optimize

Conversation

@lilei1128
Copy link
Copy Markdown
Contributor

Purpose

Add a new option compaction.skip-expired-partitions (default: false)
that allows the Flink compaction job to skip partitions already expired
under the values-time partition expiration strategy, avoiding
unnecessary compaction work on soon-to-be-deleted dataPlease continue.

  • Add CoreOptions.COMPACTION_SKIP_EXPIRED_PARTITIONS config option
  • Filter expired partitions in CompactorSourceBuilder.build() when the option enabled.

Close #7531

Tests

  • Add testSkipExpiredPartitions, testNotSkipExpiredPartitionsByDefault

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] add option to skip expired partitions in compaction job

1 participant