zhuzhurk commented on code in PR #20222:
URL: https://github.com/apache/flink/pull/20222#discussion_r919749683


##########
flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java:
##########
@@ -308,7 +308,7 @@ public int getParallelism() {
      * @param parallelism The parallelism for the task.
      */
     public void setParallelism(int parallelism) {
-        if (parallelism < 1) {
+        if (parallelism < 1 && parallelism != 
ExecutionConfig.PARALLELISM_DEFAULT) {

Review Comment:
   It will only happen in tests at the moment. However, I feel not to rework 
the test utils because I think PARALLELISM_DEFAULT should be a valid value. It 
is already accepted in many places and I prefer them to be aligned.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to