Skip to content

[HUDI-9198] Support rate limit for append mode#12999

Merged
danny0405 merged 3 commits intoapache:masterfrom
danny0405:HUDI-9198
Mar 22, 2025
Merged

[HUDI-9198] Support rate limit for append mode#12999
danny0405 merged 3 commits intoapache:masterfrom
danny0405:HUDI-9198

Conversation

@danny0405
Copy link
Contributor

Change Logs

Support rate limit for append mode

Impact

none

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

low

@danny0405 danny0405 added the engine:flink Flink integration label Mar 19, 2025
@github-actions github-actions bot added the size:M PR with lines of changes in (100, 300] label Mar 19, 2025
*/
public static <I> AppendWriteFunction<I> create(Configuration conf, RowType rowType) {
if (conf.getLong(FlinkOptions.WRITE_RATE_LIMIT) > 0) {
return new AppendWriteFunction<>(conf, rowType);
Copy link
Collaborator

Choose a reason for hiding this comment

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

AppendWriteFunctionWithLimit for rate limit > 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, it's a mistake.

@danny0405
Copy link
Contributor Author

@zhangyue19921010 Can you review this for me?

@zhangyue19921010
Copy link
Contributor

zhangyue19921010 commented Mar 21, 2025

@zhangyue19921010 Can you review this for me?

Sure thing @danny0405 will review this PR

@zhangyue19921010 zhangyue19921010 self-assigned this Mar 21, 2025
Copy link
Contributor

@zhangyue19921010 zhangyue19921010 left a comment

Choose a reason for hiding this comment

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

The code implementation is basically similar to RowDataToHoodieFunctionWithRateLimit
LGTM left a minor comment

import java.util.concurrent.TimeUnit;

/**
* Function that transforms RowData to a HoodieRecord with RateLimit.
Copy link
Contributor

Choose a reason for hiding this comment

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

hhh need to change this java doc

@github-project-automation github-project-automation bot moved this from 🆕 New to 🛬 Near landing in Hudi PR Support Mar 21, 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

@danny0405 danny0405 merged commit 5321605 into apache:master Mar 22, 2025
42 of 43 checks passed
@github-project-automation github-project-automation bot moved this from 🛬 Near landing to ✅ Done in Hudi PR Support Mar 22, 2025
voonhous pushed a commit to voonhous/hudi that referenced this pull request Apr 8, 2025
voonhous pushed a commit to voonhous/hudi that referenced this pull request Apr 9, 2025
voonhous pushed a commit to voonhous/hudi that referenced this pull request Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine:flink Flink integration release-1.0.2 size:M PR with lines of changes in (100, 300]

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants

Comments