Skip to content

feat: Support MDT compaction configs of frequency seconds and trigger strategy#17603

Merged
yihua merged 9 commits intoapache:masterfrom
kbuci:add-mdt-trigger-config
Dec 20, 2025
Merged

feat: Support MDT compaction configs of frequency seconds and trigger strategy#17603
yihua merged 9 commits intoapache:masterfrom
kbuci:add-mdt-trigger-config

Conversation

@kbuci
Copy link
Contributor

@kbuci kbuci commented Dec 16, 2025

Describe the issue this Pull Request addresses

Users currently cannot configure the metadata table to use a duration-based compaction trigger strategy.

Summary and Changelog

Add configs hoodie.metadata.compact.trigger.strategy and hoodie.metadata.compact.max.delta.seconds , used when creating metadata table write config

Impact

Enables setting metadata table compaction trigger strategy to be different than HUDI default. This allows users to specify and set time based compaction trigger policies for metadata table

Risk Level

none - default (data table) compaction trigger strategy of commit-based will continue to be used, unless overridden by user

Documentation Update

Contributor's checklist

  • Read through contributor's guide
  • Enough context is provided in the sections above
  • Adequate tests were added if applicable

@kbuci kbuci changed the title [MINOR] Metadata write config should support specifying INLINE_COMPAC… [MINOR] Metadata write config should support specifying compaction seconds and trigger strategy config Dec 16, 2025
@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Dec 16, 2025
Krishen Bhan and others added 9 commits December 19, 2025 16:40
…T_TIME_DELTA_SECONDS and INLINE_COMPACT_TRIGGER_STRATEGY
…T_TIME_DELTA_SECONDS and INLINE_COMPACT_TRIGGER_STRATEGY
…E_COMPACT_TIME_DELTA_SECONDS and INLINE_COMPACT_TRIGGER_STRATEGY"

This reverts commit ffdb8f1.
…NE_COMPACT_TIME_DELTA_SECONDS and INLINE_COMPACT_TRIGGER_STRATEGY"

This reverts commit 542e4b9.
…MetadataConfig.java

Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
…MetadataConfig.java

Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
@yihua yihua force-pushed the add-mdt-trigger-config branch from cf6cd8d to 41567fe Compare December 20, 2025 00:41
Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

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

LGTM

@yihua yihua changed the title [MINOR] Metadata write config should support specifying compaction seconds and trigger strategy config feat: Metadata write config should support specifying compaction seconds and trigger strategy config Dec 20, 2025
@yihua yihua changed the title feat: Metadata write config should support specifying compaction seconds and trigger strategy config feat: Support MDT compaction configs of frequency seconds and trigger strategy Dec 20, 2025
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@yihua yihua merged commit 22a55c6 into apache:master Dec 20, 2025
76 checks passed
yihua added a commit to yihua/hudi that referenced this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants