Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16664

Unable to set DataStreamSource parallelism to default (-1)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      A hotfix part of FLINK-14405 actually breaks setting the parallelism to its default value for datastream sources, i.e. using value -1. This is because of a small typo: instead of

      OperatorValidationUtils.validateParallelism(parallelism, isParallel);  

      this is called in org.apache.flink.streaming.api.datastream.DataStreamSource#setParallelism:

      OperatorValidationUtils.validateMaxParallelism(parallelism, isParallel); 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nkruber Nico Kruber
            nkruber Nico Kruber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment