[FLINK-37204] Add missing StarRocks connector options for 1.2.10.

pull/3883/head
zhangchaoming.zcm 1 week ago
parent 10f503ffa4
commit fba10d3e57

@ -81,6 +81,11 @@ public class StarRocksDataSinkFactory implements DataSinkFactory {
.ifPresent(
config ->
sinkConfig.set(StarRocksSinkOptions.SINK_CONNECT_TIMEOUT, config));
cdcConfig
.getOptional(StarRocksDataSinkOptions.SINK_SOCKET_TIMEOUT)
.ifPresent(
config -> sinkConfig.set(StarRocksSinkOptions.SINK_SOCKET_TIMEOUT, config));
cdcConfig
.getOptional(StarRocksDataSinkOptions.SINK_WAIT_FOR_CONTINUE_TIMEOUT)
.ifPresent(
@ -167,6 +172,7 @@ public class StarRocksDataSinkFactory implements DataSinkFactory {
Set<ConfigOption<?>> optionalOptions = new HashSet<>();
optionalOptions.add(StarRocksDataSinkOptions.SINK_LABEL_PREFIX);
optionalOptions.add(StarRocksDataSinkOptions.SINK_CONNECT_TIMEOUT);
optionalOptions.add(StarRocksDataSinkOptions.SINK_SOCKET_TIMEOUT);
optionalOptions.add(StarRocksDataSinkOptions.SINK_WAIT_FOR_CONTINUE_TIMEOUT);
optionalOptions.add(StarRocksDataSinkOptions.SINK_BATCH_MAX_SIZE);
optionalOptions.add(StarRocksDataSinkOptions.SINK_BATCH_FLUSH_INTERVAL);

@ -73,6 +73,14 @@ public class StarRocksDataSinkOptions {
.defaultValue(30000)
.withDescription("Timeout in millisecond for connecting to the `load-url`.");
public static final ConfigOption<Integer> SINK_SOCKET_TIMEOUT =
ConfigOptions.key("sink.socket.timeout-ms")
.intType()
.defaultValue(-1)
.withDescription(
"Supported since 1.2.10. The time duration for which the HTTP client waits for data."
+ " Unit: ms. The default value -1 means there is no timeout.");
public static final ConfigOption<Integer> SINK_WAIT_FOR_CONTINUE_TIMEOUT =
ConfigOptions.key("sink.wait-for-continue.timeout-ms")
.intType()

Loading…
Cancel
Save