You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Rob Keevil (JIRA)" <ji...@apache.org> on 2017/11/13 12:30:00 UTC

[jira] [Created] (AIRFLOW-1813) SSH Operator errors on commands with no output

Rob Keevil created AIRFLOW-1813:
-----------------------------------

             Summary: SSH Operator errors on commands with no output
                 Key: AIRFLOW-1813
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1813
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Rob Keevil


The SSH Operator will throw an empty "SSH operator error" when running commands that do not immediately log something to the terminal.  This is due to a call to stdout.channel.recv when the channel currently has a 0-size buffer, either because the command has not yet logged anything, or never will (e.g. sleep 5).  A simple check of the buffer size before reading will fix this issue, will link a PR shortly



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