[ https://issues.apache.org/jira/browse/FLINK-31873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Xiao updated FLINK-31873: ------------------------------ Description: When turning on Flink reactive mode, it is suggested to convert all {{setParallelism}} calls to {{setMaxParallelism from }}[elastic scaling docs|https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/deployment/elastic_scaling/#configuration]. With the current implementation of the {{DataStreamSink}} class, only the {{[setParallelism|https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSink.java#L172-L181]}} function of the {{[Transformation|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L248-L285]}} class is exposed - {{Transformation}} also has the {{[setMaxParallelism|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L277-L285]}} function which is not exposed. This means for any sink in the Flink pipeline, we cannot set a max parallelism. was: When turning on Flink reactive mode, it is suggested to convert all {{setParallelism}} calls to {{setMaxParallelism from the }}[elastic scaling docs|https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/deployment/elastic_scaling/#configuration]. With the current implementation of the {{DataStreamSink}} class, only the {{[setParallelism|https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSink.java#L172-L181]}} function of the {{[Transformation|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L248-L285]}} class is exposed - {{Transformation}} also has the {{[setMaxParallelism|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L277-L285]}} function which is not exposed. > Add setMaxParallelism to the DataStreamSink Class > ------------------------------------------------- > > Key: FLINK-31873 > URL: https://issues.apache.org/jira/browse/FLINK-31873 > Project: Flink > Issue Type: Bug > Components: API / DataStream > Reporter: Eric Xiao > Priority: Major > Attachments: Screenshot 2023-04-20 at 4.33.14 PM.png > > > When turning on Flink reactive mode, it is suggested to convert all > {{setParallelism}} calls to {{setMaxParallelism from }}[elastic scaling > docs|https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/deployment/elastic_scaling/#configuration]. > With the current implementation of the {{DataStreamSink}} class, only the > {{[setParallelism|https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSink.java#L172-L181]}} > function of the > {{[Transformation|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L248-L285]}} > class is exposed - {{Transformation}} also has the > {{[setMaxParallelism|https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java#L277-L285]}} > function which is not exposed. > > This means for any sink in the Flink pipeline, we cannot set a max > parallelism. -- This message was sent by Atlassian Jira (v8.20.10#820010)