Skip to content

[HUDI-6808] SkipCompaction Config should not affect the stream read of the cow table#9584

Merged
danny0405 merged 1 commit intoapache:masterfrom
zhuanshenbsj1:HUDI-6808
Sep 4, 2023
Merged

[HUDI-6808] SkipCompaction Config should not affect the stream read of the cow table#9584
danny0405 merged 1 commit intoapache:masterfrom
zhuanshenbsj1:HUDI-6808

Conversation

@zhuanshenbsj1
Copy link
Contributor

@zhuanshenbsj1 zhuanshenbsj1 commented Aug 31, 2023

Change Logs

The same action type(commit) is used after the completion of mor-compaction and cow-commit. If skipcompaction is configured, it will cause the stream read to skip the normal commit when reading the cow table. SkipCompaction Config should not affect the stream read of the cow table .

Impact

Describe any public API or user-facing feature change or any performance impact.

Risk level (write none, low medium or high below)

If medium or high, explain what verification was done to mitigate the risks.

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

public HoodieTimeline filterInstantsAsPerUserConfigs(HoodieTimeline timeline, HoodieTableType tableType) {
final HoodieTimeline oriTimeline = timeline;
if (this.skipCompaction) {
if (tableType.equals(HoodieTableType.MERGE_ON_READ) & this.skipCompaction) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Another choice is to resolve the table type with OptionsResolver and the this.conf.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted to use OptionsResolver.

@zhuanshenbsj1 zhuanshenbsj1 force-pushed the HUDI-6808 branch 2 times, most recently from 65e83e4 to cd3a969 Compare August 31, 2023 17:22
public HoodieTimeline filterInstantsAsPerUserConfigs(HoodieTimeline timeline, HoodieTableType tableType) {
final HoodieTimeline oriTimeline = timeline;
if (this.skipCompaction) {
if (OptionsResolver.isMorTable(this.conf) & this.skipCompaction) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no need to pass around the HoodieTableType now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the para HoodieTableType.

@hudi-bot
Copy link
Collaborator

hudi-bot commented Sep 1, 2023

CI report:

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

@nsivabalan nsivabalan added priority:blocker Production down; release blocker release-0.14.0 labels Sep 1, 2023
@danny0405 danny0405 merged commit 52bc91e into apache:master Sep 4, 2023
prashantwason pushed a commit that referenced this pull request Sep 13, 2023
leosanqing pushed a commit to leosanqing/hudi that referenced this pull request Sep 13, 2023
TheR1sing3un pushed a commit to TheR1sing3un/hudi that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker release-0.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants