You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/16 16:56:00 UTC

[jira] [Commented] (AIRFLOW-3528) handle socket exception with SFTPOperator

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

ASF GitHub Bot commented on AIRFLOW-3528:
-----------------------------------------

eladkal opened a new pull request #4325: [AIRFLOW-3528] handle socket exception with SFTPOperator
URL: https://github.com/apache/incubator-airflow/pull/4325
 
 
   ### Jira
   - [ ] My PR addresses the following [Airflow Jira](https://issues.apache.org/jira/browse/AIRFLOW/3528) 
   
   ### Description
   add try/exception to catch socket exceptions
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> handle socket exception with SFTPOperator
> -----------------------------------------
>
>                 Key: AIRFLOW-3528
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3528
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.10.1
>            Reporter: Elad
>            Assignee: Elad
>            Priority: Major
>
> Currently SFTPOperator executes:
>  
> {code:java}
> sftp_client = ssh_client.open_sftp()
> {code}
> without handling socket errors. 
> If error occurs with the connection the operator show the following message:
> {code:java}
> Subtask: airflow.exceptions.AirflowException: Error while transferring None, error: 'NoneType' object has no attribute 'open_sftp'{code}
> This error is misleading because it suggests that there is a problem with the file transfer yet the problem in fact can be with the connection.
>  
> The issue reported by lot on Slack.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)