-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
*/ | ||
public static <I> AppendWriteFunction<I> create(Configuration conf, RowType rowType) { | ||
if (conf.getLong(FlinkOptions.WRITE_RATE_LIMIT) > 0) { | ||
return new AppendWriteFunction<>(conf, rowType); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@zhangyue19921010 Can you review this for me? |
Sure thing @danny0405 will review this PR |
There was a problem hiding this 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. |
There was a problem hiding this comment.
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
Change Logs
Support rate limit for append mode
Impact
none
Risk level (write none, low medium or high below)
low