You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Thomas Papke (JIRA)" <ji...@apache.org> on 2017/01/27 14:45:24 UTC
[jira] [Created] (CAMEL-10756) Mina2 Producer "hang" until timeout
if the response message could not be decoded
Thomas Papke created CAMEL-10756:
------------------------------------
Summary: Mina2 Producer "hang" until timeout if the response message could not be decoded
Key: CAMEL-10756
URL: https://issues.apache.org/jira/browse/CAMEL-10756
Project: Camel
Issue Type: Bug
Components: camel-mina2
Affects Versions: 2.18.1
Reporter: Thomas Papke
I have tried to upgrade from camel 2.16 to 2.18 and run into an issue with camel-mina2. It looks like CAMEL-10024 has maybe introduced this issue.
The scenario which fail:
A Mina2 producer send a request to a server, the server provide a response which could not be interpreted by a custom coded (e.g. due to invalid encoding).
*Expected behavior:*
* The Exception from the decoder on the producer side will be directly propogated to the caller. The mina2 session will be closed.
*Current behavior:*
* Instead of the exception from the decoder, the producer wait until the timeout is reached and i get a timeout exception.
*First analysis:*
I have attached a patch for the camel-mina2 module which contain a test {{org.apache.camel.component.mina2.Mina2CustomCodecTest.testProducerFailInDecodingResponse()}} to reproduce this issue.
*If i revert the changes done within CAMEL-10024, the test run correct.* If I debug into the new code, i see that the producer "hang" in {{Mina2Producer.closeSessionIfNeededAndAwaitCloseInHandler(IoSession)}} -- {{closeLatch.await(timeout, TimeUnit.MILLISECONDS);}} which was introduced with CAML-10024.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)