Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Mar 22, 2025

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 flink Issues related to flink 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
Contributor

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

@hudi-bot
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flink Issues related to flink size:M PR with lines of changes in (100, 300]
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants