Skip to content

[HUDI-6189] Reuse the timeline supplied in predefined variable or parameter#8664

Merged
danny0405 merged 1 commit intoapache:masterfrom
littleeleventhwolf:ref/view_manager
May 10, 2023
Merged

[HUDI-6189] Reuse the timeline supplied in predefined variable or parameter#8664
danny0405 merged 1 commit intoapache:masterfrom
littleeleventhwolf:ref/view_manager

Conversation

@littleeleventhwolf
Copy link
Contributor

@littleeleventhwolf littleeleventhwolf commented May 8, 2023

Change Logs

Reuse the timeline supplied in predefined variable or parameter
Describe context and summary for this change. Highlight if any code was copied.

Impact

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

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

none

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

return (HoodieTableFileSystemView) ReflectionUtils.loadClass(HOODIE_METASERVER_FILE_SYSTEM_VIEW_CLASS,
new Class<?>[] {HoodieTableMetaClient.class, HoodieTimeline.class, HoodieMetaserverConfig.class},
metaClient, metaClient.getActiveTimeline().getCommitsTimeline().filterCompletedInstants(), metaClient.getMetaserverConfig());
metaClient, timeline, metaClient.getMetaserverConfig());
Copy link
Contributor

Choose a reason for hiding this comment

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

This line exclude the compaction instants before, does it have regression?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I review the Git commit history and find when instantiating HoodieMetadataFileSystemView, compaction instants were initially excluded. Later, in HUDI-3692, this issue was fixed by using the timeline that includes compaction instants.
So I think when initializing HoodieMetaserverFileSystemView, compaction instants should also be included to ensure the correctness of asynchronous compaction.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I agree.

@hudi-bot
Copy link
Collaborator

hudi-bot commented May 8, 2023

CI report:

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

@danny0405 danny0405 self-assigned this May 9, 2023
@danny0405 danny0405 added type:refactor Code refactoring and cleanup priority:medium Moderate impact; usability gaps and removed type:refactor Code refactoring and cleanup labels May 9, 2023
@danny0405 danny0405 merged commit 31900cd into apache:master May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Moderate impact; usability gaps type:refactor Code refactoring and cleanup

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants