flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8114) NO-arg scripts are given an empty string as argument
Date Mon, 20 Nov 2017 14:07:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-8114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16259261#comment-16259261
] 

Chesnay Schepler commented on FLINK-8114:
-----------------------------------------

The argument forwarding is pretty much completely broken. It only works for exactly 1 argument.
0 arguments result in an empty string being passed as an argument, multiple arguments are
passed in as a single argument.

> NO-arg scripts are given an empty string as argument
> ----------------------------------------------------
>
>                 Key: FLINK-8114
>                 URL: https://issues.apache.org/jira/browse/FLINK-8114
>             Project: Flink
>          Issue Type: Bug
>          Components: Python API
>    Affects Versions: 1.4.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>             Fix For: 1.4.0
>
>
> Each PythonStreamer instance passes the original program arguments to the python process
upon creation. However, not check is made whether there were any arguments at all, which results
in an empty String being passed as an argument.
> {code}
> process = Runtime.getRuntime().exec(new String[] {pythonBinaryPath, "-O", "-B", planPath,
arguments});
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message