You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2020/11/05 20:58:00 UTC

[jira] [Updated] (HTTPCORE-653) CancelledKeyException Triggers Reactor to Shutdown

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

Oleg Kalnichevski updated HTTPCORE-653:
---------------------------------------
    Priority: Critical  (was: Major)

> CancelledKeyException Triggers Reactor to Shutdown
> --------------------------------------------------
>
>                 Key: HTTPCORE-653
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-653
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>    Affects Versions: 5.0.2
>         Environment: linux
>            Reporter: Danmeng Tu
>            Priority: Critical
>             Fix For: 5.0.3, 5.1-beta2
>
>         Attachments: AbstractHttpClientDownloader.java, LimitedAsyncResponseConsumer.java, Screen Shot 2020-11-05 at 23.12.44.png, Screen Shot 2020-11-05 at 23.12.53.png, Screen Shot 2020-11-05 at 23.50.46.png, Screen Shot 2020-11-06 at 00.05.00.png, threads_report.txt
>
>
> Recently I noticed the I/O Reactor of my application always shuts down unexpectedly, so I tried to remote debug my application and found shutting down process is triggered by CancelledKeyException, and since I'm not an expert of NIO therefore I did my best to assist you to diagnose the problem with thread dump and stacktrace attached.
> Apart from that, I also attached the code of how I use HttpClient in order to make sure, such exception is not caused in correct usage of HttpClient.
> Let me know if you need more details please.
>  [^AbstractHttpClientDownloader.java] 
>  [^LimitedAsyncResponseConsumer.java] 
> And I found a similar _processEvent_ in HttpAsyncClient 4.1.4, and it seems to be _CancelledKeyException_ is handled without shutting the reactor down.
> HttpAsyncClient 4.1.4
>  !Screen Shot 2020-11-06 at 00.05.00.png! 
> HttpClient 5.0.3
>  !Screen Shot 2020-11-05 at 23.50.46.png! 
> Exception details
>  !Screen Shot 2020-11-05 at 23.12.44.png! 
>  !Screen Shot 2020-11-05 at 23.12.53.png! 
> Thank you very much.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org