Alojzij Blatnik created QPID-8071:
-------------------------------------
Summary: Java Qpid library does not report that session was closed
Key: QPID-8071
URL: https://issues.apache.org/jira/browse/QPID-8071
Project: Qpid
Issue Type: Bug
Components: Broker-J
Affects Versions: qpid-java-6.1.5
Environment: slow network towards Qpid broker
Reporter: Alojzij Blatnik
when qpid.io_network_transport_timeout is exceeded, qpid-java library does not
throw exception, but the exception is just logged, hence the code, that is
calling qpid-java library doesn't know that qpid message wasn't sent until it
becomes obvious that connection is closed.
monkey patch:
diff --git a/common/src/main/java/org/apache/qpid/transport/Session.java
b/common/src/main/java/org/apache/qpid/transport/Session.java
index 9568873..b1afd8d 100644
--- a/common/src/main/java/org/apache/qpid/transport/Session.java
+++ b/common/src/main/java/org/apache/qpid/transport/Session.java
@@ -759,16 +759,7 @@ public class Session extends SessionInvoker
}
catch (SenderException e)
{
- if (!closing)
- {
- // if we are not closing then this will happen
- // again on resume
- LOGGER.error("error sending command", e);
- }
- else
- {
- e.rethrow();
- }
+ e.rethrow();
}
if (autoSync)
{
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]