On 7/9/20 8:41 AM, akabhishek1 wrote:
Hi Robbie,

Thanks a lot for your reply. In our application there are multiple
ServiceBus connection which serves for different endpoints. However we
didn't oberserve this issue for other endpoints but we observed this issue
for two endpoints. Yes you are are right multiple threads are envolved.

However i did testing with 0.52.0 (single thread) and i can see same
behaviour. Session.createTextMessage not throwing exception in the absence
of connection. I think, it should throw exception in the absence of
connection

As Robbie stated the create message methods will throw exceptions once the session state reflects the loss of connection (eventual consistency) and the follow on message send will throw if the create does not so there is no client issue here.  Your code needs to be ready to handle error for all of these cases as they can and do happen when connections drop.


Could you please check for this issue?
I am not sure this issue is related with our issue or not, but it could be
related, because session is not able to idetinfy correct connection status.

Please find below steps to reproduce
this issue and attached "TestQpidSendSessionRecoverableError.java".

Actual Behavior - Session successfully created text message in absence of
connection
Expected Behavior -  session.createTextMessage("Hello World") - should throw
exception in the absence of connection.

Steps to reproduce this issue -
1. Provide correct ServiceBus endpoint details
2. Add debug point at Line no 55  (before creating text message)
3. Start class in debug mode
5. Application should stop at debug point, and disable network
6. Click on resume button

We can see that, class successfully created text message instead of
connection exception. Please let us know your opinon.

TestQpidSendSessionRecoverableError.java
<http://qpid.2158936.n2.nabble.com/file/t396358/TestQpidSendSessionRecoverableError.java>

Regards,
Abhi



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org


--
Tim Bish


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to