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)

Reply via email to