[ 
https://issues.apache.org/jira/browse/FLINK-18217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler closed FLINK-18217.
------------------------------------
    Fix Version/s: 1.11.0
       Resolution: Fixed

master: 6216906400b4d1c0730868b1f68d2087bc70bec5
1.11: 1fb76645c2f6b670ebf1bcc4ae758bdd6b52bf46

> config.sh#extractExecutionResults does not fail on wrong input
> --------------------------------------------------------------
>
>                 Key: FLINK-18217
>                 URL: https://issues.apache.org/jira/browse/FLINK-18217
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Scripts
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>
> If the BashJavaUtils fail, and {{config.sh#extractExecutionResults}} is 
> called with the exception output, which does not contain the expected lines, 
> then it will not detect an error.
> {code}
> execution_results=$(echo "${output}" | grep ${EXECUTION_PREFIX})
> num_lines=$(echo "${execution_results}" | wc -l)
>     if [[ ${num_lines} -ne ${expected_lines} ]]; then
> {code}
> Apparently, even if {{execution_results}} is empty, {{$(echo 
> "${execution_results}" | wc -l)}} returns 1.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to