You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/07/15 16:47:00 UTC

[jira] [Commented] (NIFI-9758) PutEmail processor dying when SMTP server does not respond

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

ASF subversion and git services commented on NIFI-9758:
-------------------------------------------------------

Commit cb0753b03cc7fe55b86cc795d9b7cd328c783fc0 in nifi's branch refs/heads/main from Emilio Setiadarma
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=cb0753b03c ]

NIFI-9758 Added Dynamic Properties to PutEmail

This closes #6204

Signed-off-by: David Handermann <ex...@apache.org>


> 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
>          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)