airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1813) SSH Operator errors on commands with no output
Date Mon, 13 Nov 2017 15:02:00 GMT

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

ASF subversion and git services commented on AIRFLOW-1813:
----------------------------------------------------------

Commit d4d8eb932657f4d1eccfaa8bb1d12933535fae94 in incubator-airflow's branch refs/heads/master
from [~RJKeevil]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=d4d8eb9 ]

[AIRFLOW-1813] Bug SSH Operator empty buffer

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)

Make code PEP8 compliant

Closes #2785 from RJKeevil/fix-ssh-operator-no-
terminal-output


> 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
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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)

Mime
View raw message