pltbkd opened a new pull request #18699:
URL: https://github.com/apache/flink/pull/18699


   Parallelism of a transformation with default parallelism(-1) is set when 
transforming, using the default parallelism set in the environment. However, in 
SinkExpander#expand, the environment parallelism is set to -1 at the entrance, 
to verify if the parallelism of a expanded transformation is set. The 
environment parallelism will be restored when exiting the method, but at 
present the transform is called within this scope. If the parallelism of a sink 
is not set, the parallelism of the sink transformation and all transformations 
expanded from it will not be handled, so the JobGraph generated will have 
vertices with -1 parallelism, causing the assertion failure in 
AdaptiveScheduler.
   
   This pr fixes the bug by putting the restoring of the environment 
parallelism ahead of transforming the sink transformations. 


-- 
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


Reply via email to