[ https://issues.apache.org/jira/browse/FLINK-26098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17518897#comment-17518897 ]
Marios Trivyzas commented on FLINK-26098: ----------------------------------------- It also works with the new approach of creating a {{{}StreamTableEnvironment{}}}: {noformat} StreamExecutionEnvironment streamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment(); Configuration configuration = new Configuration(); configuration.set(TABLE_EXEC_SOURCE_IDLE_TIMEOUT, Duration.ofSeconds(100)); EnvironmentSettings settings = EnvironmentSettings.newInstance() .inStreamingMode() .withConfiguration(configuration) .build(); StreamTableEnvironment streamTableEnvironment = StreamTableEnvironment.create(streamExecutionEnvironment, settings);{noformat} > TableAPI does not forward idleness configuration from DataStream > ---------------------------------------------------------------- > > Key: FLINK-26098 > URL: https://issues.apache.org/jira/browse/FLINK-26098 > Project: Flink > Issue Type: Bug > Components: Table SQL / API > Affects Versions: 1.15.0, 1.14.3 > Reporter: Till Rohrmann > Assignee: Marios Trivyzas > Priority: Major > Attachments: Screenshot_20220407_150020.png, > Screenshot_20220407_151012.png > > > The TableAPI does not forward the idleness configuration from a DataStream > source. That can lead to the halt of processing if all sources are idle > because {{WatermarkAssignerOperator}} [1] will never set a channel to active > again. The only way to mitigate the problem is to explicitly configure the > idleness for table sources via {{table.exec.source.idle-timeout}}. > Configuring this value is actually not easy because creating a > {{StreamExecutionEnvironment}} via {{create(StreamExecutionEnvironment, > TableConfig)}} is deprecated. > [1] > https://github.com/apache/flink/blob/master/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/wmassigners/WatermarkAssignerOperator.java#L103 -- This message was sent by Atlassian Jira (v8.20.1#820001)