[ 
https://issues.apache.org/jira/browse/NIFI-9758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann resolved NIFI-9758.
------------------------------------
    Fix Version/s: 1.17.0
       Resolution: Fixed

> PutEmail processor dying when SMTP server does not respond
> ----------------------------------------------------------
>
>                 Key: NIFI-9758
>                 URL: https://issues.apache.org/jira/browse/NIFI-9758
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.14.0
>         Environment: Windows Server 2016
> JDK 11
>            Reporter: Javier Fonseca
>            Assignee: Emilio Setiadarma
>            Priority: Major
>              Labels: easyfix, features
>             Fix For: 1.17.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> *Bug*
> PutEmail processor dyes after _"the socked connection is established, if the 
> server response is lost for some reason (or if the server doesn't respond at 
> all) the processor thread gets stuck forever._ 
> _Apparently this is kind of by design, since the default value of the 
> mail.smtp.timeout property is infinite, as it can be see 
> [here|https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html]._
> _I had a look at the PutEmail processor source code and unfortunately I don't 
> think there is a way currently to set this in the processor configuration."_
> Processor must be terminated/restart in these cases.
>  
> *Potential Solution*
> Add a configurable property TimeOut to set the __ value of the 
> _mail.smtp.timeout_ property, allowing the processor to fail after certain 
> amount of time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to