hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[HUDI-6860] Move createNewInstantTime out of HoodieActiveTimeline

Open wombatu-kun opened this issue 1 year ago • 5 comments

Change Logs

Moved createNewInstantTime out of HoodieActiveTimeline (to HoodieTimeline)

Impact

none

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

wombatu-kun avatar Feb 20 '24 09:02 wombatu-kun

Can you elaborate what is the purpose of this change?

danny0405 avatar Feb 21 '24 04:02 danny0405

CI report:

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

hudi-bot avatar Feb 21 '24 05:02 hudi-bot

I don't know exactly, I'm not the reporter of this improvement in ASF Jira (it is Hui An). I suppose his purpose was to extract such a common utility code from HoodieActiveTimeline class to ease it's huge and complex logic a little bit.

wombatu-kun avatar Feb 21 '24 05:02 wombatu-kun

@boneanxs Can you help for the review and clarify the initiative aim of the task?

danny0405 avatar Feb 22 '24 02:02 danny0405

@boneanxs Can you help for the review and clarify the initiative aim of the task?

Hey @danny0405 @wombatu-kun, sorry for misunderstanding. The intention of this issue is to moving createNewInstantTime to TimeGenerator or somewhere else as a instance method since createNewInstantTime in HoodieActiveTimeline is a static method and requires to pass HadoopConf and HoodieTimeGeneratorConfig(now is TimeGenerator) every time.

But after some codes refine of #9617(we hide createNewInstantTime to HoodieTableMetaClient and BaseHoodieClient), it looks quite clean now, not sure we still need this.

boneanxs avatar Feb 23 '24 02:02 boneanxs

@boneanxs @wombatu-kun should we close this PR if no longer needed?

yihua avatar Mar 01 '24 06:03 yihua

Closed, @wombatu-kun Thanks for the contribution anyway!

danny0405 avatar Mar 01 '24 08:03 danny0405