danny0405 commented on code in PR #9904: URL: https://github.com/apache/hudi/pull/9904#discussion_r1375593559
########## hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/FlinkOptions.java: ########## @@ -343,12 +343,25 @@ private FlinkOptions() { .noDefaultValue() .withDescription("End commit instant for reading, the commit time format should be 'yyyyMMddHHmmss'"); + public static final ConfigOption<Boolean> READ_SPEED_LIMIT_ENABLED = ConfigOptions + .key("read.speed.limit.enabled") + .booleanType() + .defaultValue(false) + .withDescription("Enable stream read speed limit, avoiding the risk of oom caused by the streamReadMonitor " + + " loading too many metadata at once"); + + public static final ConfigOption<Integer> READ_SPEED_LIMIT_COMMITS = ConfigOptions + .key("read.speed.limit.commits") + .intType() + .defaultValue(5) Review Comment: A single option `read.commits.limit` without default should be enough, if the user does not configure it, that means there is no limit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org