danny0405 commented on code in PR #9904:
URL: https://github.com/apache/hudi/pull/9904#discussion_r1375598847


##########
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)
+      .withDescription("The maximum number of commits allowed 
streamReadMonitor to read in each poll");
+

Review Comment:
   `The maximum number of commits allowed streamReadMonitor to read in each 
poll` ->
   `The maximum number of commits allowed to read in each instant check, if it 
is streaming read, the avg read instants number per-second would be 
'read.commits.limit'/'read.streaming.check-interval', by default 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to