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 2021/07/20 17:56:00 UTC
[jira] [Commented] (NIFI-8770) HandleHttpRequest fails to empty
queue on shutdown
[ https://issues.apache.org/jira/browse/NIFI-8770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384427#comment-17384427 ]
ASF subversion and git services commented on NIFI-8770:
-------------------------------------------------------
Commit cb020072f70f444dcae6e5e32e9f25d21495cec5 in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=cb02007 ]
NIFI-8770 Use queue drainTo() on shutdown in HandleHttpRequest
- Refactored response handling to use shared sendError() method
- Standardized request logging to include HTTP Method and URI
Signed-off-by: Nathan Gough <th...@gmail.com>
This closes #5218.
> HandleHttpRequest fails to empty queue on shutdown
> --------------------------------------------------
>
> Key: NIFI-8770
> URL: https://issues.apache.org/jira/browse/NIFI-8770
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.14.0, 1.13.2
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The {{HandleHttpRequest}} shutdown process includes attempts to clear the queue of pending requests and send HTTP 503 responses. The current implementation polls the queue with a timeout of two seconds and attempts to send responses to retrieved requests. Uncaught RuntimeExceptions can result in failing the empty the queue, resulting in unexpected request processing when {{HandleHttpRequest}} is rescheduled to run.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)