You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jianchao Yang (Jira)" <ji...@apache.org> on 2020/01/07 00:36:00 UTC

[jira] [Created] (AIRFLOW-6494) SSH host_proxy has to be fresh

Jianchao Yang created AIRFLOW-6494:
--------------------------------------

             Summary: SSH host_proxy has to be fresh
                 Key: AIRFLOW-6494
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6494
             Project: Apache Airflow
          Issue Type: Bug
          Components: contrib
    Affects Versions: 1.10.1, 2.0.0
            Reporter: Jianchao Yang


AIRFLOW-1762 moved `host_proxy` in contrib/hooks/ssh_hook.py to __init__, which causes the proxy socket to be closed whenever the SSH client is closed—which happens every time when exiting `with get_conn() as client`.

The inconsistency between SSH Client and ProxyCommand's lifecycles would result in "Broken Pipe" error (because the proxy socket has already been closed!) when the same hook instance is used multiple time (often needed in some custom operators).

 



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