You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2020/04/01 16:03:00 UTC

[jira] [Commented] (MINIFICPP-1172) Fix flickery http test cases

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

Marton Szasz commented on MINIFICPP-1172:
-----------------------------------------

The issue seems to be that we initiate a stop of the http server which then stops accepting new tasks but consumes its work queue. This is a problem because each task may initiate further tasks that may be required for their completion.

 

The solution could be deregistering all of our request handlers and waiting for existing handlers to complete before initiating `mg_stop()`

> Fix flickery http test cases
> ----------------------------
>
>                 Key: MINIFICPP-1172
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1172
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>    Affects Versions: 0.7.0
>            Reporter: Arpad Boda
>            Assignee: Arpad Boda
>            Priority: Major
>             Fix For: 0.8.0
>
>
> Need to update CivetServer to version 1.11 because of this fix: https://github.com/civetweb/civetweb/pull/589/files
> After the update is done, we should remove all handlers before calling stop make sure no handles are running when the server is stopped. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)