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

config.sh#extractExecutionResults does not fail on wrong input

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

Details

    Description

      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.

      execution_results=$(echo "${output}" | grep ${EXECUTION_PREFIX})
      num_lines=$(echo "${execution_results}" | wc -l)
          if [[ ${num_lines} -ne ${expected_lines} ]]; then
      

      Apparently, even if execution_results is empty, $(echo "${execution_results}" | wc -l) returns 1.

      Attachments

        Issue Links

        Activity

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

          People

            chesnay Chesnay Schepler
            chesnay Chesnay Schepler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment