You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kazunori Shinhira (JIRA)" <ji...@apache.org> on 2019/05/22 05:12:00 UTC

[jira] [Created] (FLINK-12586) Stderr and stdout are reversed in OptimizerPlanEnvironment

Kazunori Shinhira created FLINK-12586:
-----------------------------------------

             Summary: Stderr and stdout are reversed in OptimizerPlanEnvironment
                 Key: FLINK-12586
                 URL: https://issues.apache.org/jira/browse/FLINK-12586
             Project: Flink
          Issue Type: Bug
          Components: Command Line Client
    Affects Versions: 1.8.0, 1.7.2
            Reporter: Kazunori Shinhira


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.
{code:java}
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));
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)