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

Stderr and stdout are reversed in OptimizerPlanEnvironment

    XMLWordPrintableJSON

    Details

      Description

      In OptimizerPlanEnvironment#getOptimizedPlan method, it looks like that stdout is output as System.err and stderr is output as System.out.

      https://github.com/apache/flink/blob/master/flink-clients/src/main/java/org/apache/flink/client/program/OptimizerPlanEnvironment.java#L107-L108

       

      I think, It should be like as bellow.

      throw new ProgramInvocationException(
      
      "The program plan could not be fetched - the program aborted pre-maturely."
      
      + "\n\nSystem.err: " + (stdout.length() == 0 ? "(none)" : stderr)
      
      + "\n\nSystem.out: " + (stderr.length() == 0 ? "(none)" : stdout));
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fan_li_ya Liya Fan
                Reporter:
                shinhira_kazunori Kazunori Shinhira
              • 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