Skip to content

[HUDI-8678] feat: improve consistent-bucket resizing performance by reducing unnecessary record collecting#12451

Merged
danny0405 merged 4 commits intoapache:masterfrom
TheR1sing3un:improve_consistent_clustering_by_reduce_collect
Jan 6, 2025
Merged

[HUDI-8678] feat: improve consistent-bucket resizing performance by reducing unnecessary record collecting#12451
danny0405 merged 4 commits intoapache:masterfrom
TheR1sing3un:improve_consistent_clustering_by_reduce_collect

Conversation

@TheR1sing3un
Copy link
Member

When perform clustering to adjust bucket num for consistent-bucket, it is unnecessary to go through all the records to find the partitions to which the mapping relationship is to be loaded, because clustering plan already knows which partitions are required.

Change Logs

Describe context and summary for this change. Highlight if any code was copied.

  1. improve consistent-bucket resizing performance by reducing unnecessary record collecting

Impact

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

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

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

Documentation Update

none
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

  • 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

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Dec 9, 2024
@TheR1sing3un TheR1sing3un force-pushed the improve_consistent_clustering_by_reduce_collect branch from 16d1021 to f457d79 Compare December 18, 2024 05:26
@github-actions github-actions bot added size:M PR with lines of changes in (100, 300] and removed size:S PR with lines of changes in (10, 100] labels Dec 18, 2024
…cessary record collecting

1. improve consistent-bucket resizing performance by reducing unnecessary record collecting

Signed-off-by: TheR1sing3un <chaoyang@apache.org>
1. remove ConsistentHashingBucketInsertPartitioner

Signed-off-by: TheR1sing3un <chaoyang@apache.org>
1. fix code style after rebasing master

Signed-off-by: TheR1sing3un <chaoyang@apache.org>
@TheR1sing3un TheR1sing3un force-pushed the improve_consistent_clustering_by_reduce_collect branch from f457d79 to ededfcf Compare December 19, 2024 03:29
@TheR1sing3un
Copy link
Member Author

@danny0405 Hi, code has been updated according to your previous review, let's continue to review!

1. remove unused flag

Signed-off-by: TheR1sing3un <chaoyang@apache.org>
@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

@danny0405 danny0405 merged commit 24f0db6 into apache:master Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M PR with lines of changes in (100, 300]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants