muskaan62 commented on issue #2849:
URL: https://github.com/apache/activemq/issues/2849#issuecomment-7002528348

   Thanks for all the help here @mattrpav My main concern is around **session 
isolation when multiple Sessions share a single Connection**.
   
   I understand that if an `IOException` occurs at the transport level, 
ActiveMQ considers the underlying Connection unreliable, and this can affect 
all Sessions sharing that Connection.
   I have a few questions regarding the expected behaviour:
   
   1. When using ActiveMQ's Failover Transport (`failover:(...)`), if an 
`IOException` occurs, what is the expected behaviour? Should the operation fail 
with an exception, or should Failover Transport transparently reconnect and 
create the new connection? This is my primary concern.
   2. I cannot share the actual logs because the issue is occurring in a 
customer's environment, where Failover  is  used.
   3. I have tried reproducing the issue using a standalone application, but I 
am unable to reproduce the same behaviour with Solace.
   
   4. With an in-house application reproduction(without failover), I observe 
that Solace throws an `InterruptedException`, whereas ActiveMQ throws an 
`InterruptedIOException` and appears to propagate the failure to the other 
Session sharing the Connection.'
   stacktrace for solace
   `Caused by: com.solacesystems.jcsmp.JCSMPInterruptedException: wait for 
ACK/NACK interrupted
        at 
com.solacesystems.jms.impl.FlowMessageProducerAdapter.send(FlowMessageProducerAdapter.java:123)
        at 
com.solacesystems.jms.SolMessageProducer.sendMessage(SolMessageProducer.java:410)
        ... 22 more
   Caused by: java.lang.InterruptedException
        at 
java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2056)
        at 
java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2090)
        at 
java.base/java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:417)
        at 
com.solacesystems.jms.impl.FlowMessageProducerAdapter.send(FlowMessageProducerAdapter.java:118)
   `
   
   
   I am trying to understand whether this difference is due to how ActiveMQ and 
Solace handle thread interruptions and transport-level failures, and 
specifically what the expected recovery behaviour?
   
   My primary requirement is to understand whether one Session's interruption 
or failure should affect other Sessions sharing the same Connection, and 
whether Failover Transport is expected to handle this transparently.
   
   I'm okay with using separate physical Connections for each Session, but 
before making that change, I'd like to understand why one Session's 
interruption affects the others and whether any  configurations can handle this 
scenario and provide better isolation without requiring separate Connections.
   Thanks!!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to