afedulov commented on code in PR #20757: URL: https://github.com/apache/flink/pull/20757#discussion_r968928532
########## flink-core/src/main/java/org/apache/flink/api/connector/source/SourceReaderContext.java: ########## @@ -63,4 +63,11 @@ public interface SourceReaderContext { * @see UserCodeClassLoader */ UserCodeClassLoader getUserCodeClassLoader(); + + /** + * Get the current parallelism of this Source. + * + * @return the parallelism of the Source. + */ + int currentParallelism(); Review Comment: I tend to favor the second option. @zentol what do you think? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org