No, I dont know any ways of 'hacking' ServiceBus to do all things the
test does with its peer. We use a test peer specifically because such
things are often difficult or at least slow. You'd have to ask
Microsoft for questions you have about ServiceBus in any case.

See my mail from last time, there are various options for establishing
your own test specific server to validate particular behaviours:
https://lists.apache.org/thread.html/r6e016adafddf563445d9754cdf284f53f5d45a528adc7c07ee370134%40%3Cusers.qpid.apache.org%3E

Though, essentially copying the test as you did doesn't seem likely to
show anything the test didnt.

You can use protocol trace logs to determine and then reproduce
specific behaviours of interest yourself. From the stracktrace only
though, I could say the 'unknown error from peer' description earlier
in this thread was the result of the server remotely closing the
consumer without specifying the error field to indicate why. That all
seems unrelated to what I was testing, though that would similarly say
'unknown error from peer' if I had not included an error in the remote
session closure to validate it got reported.

On Fri, 12 Mar 2021 at 12:48, akabhishek1
<[email protected]> wrote:
>
> Hi Robbie,
>
> Thanks a lot for your quick reply and confirmation on this issue.
> I referred your test case "testRemotelyEndSessionWithMessageListener"  and
> trying to replicate same test case with Azure ServiceBus, So I can replicate
> this issue and provide confirmation for fixes.
>
> Main challenge for me to perform action based on "TestAmqpPeer" class such
> as "remotelyEndLastOpenedSession()", "expectBegin()",
> "waitForAllHandlersToComplete()" operations.
> I think all these operations are performing under Proton library and don't
> have direct access to us.
>
> Please find sample test class -
> https://github.com/abhikt48/servicebus/blob/master/Qpid-57/TestSessionClosedException.java
> It is not working fine due to missing equivalent operation of "TestAmqpPeer"
> Class.
>
> Can you please suggest any hacking through which I can perform same
> functionality of "TestAmqpPeer" with ServiceBus and qpid SDK.
> It will be really helpful if you can provide us any clue to perform
> equivalent operation of "TestAmqpPeer", So I can execute test case and
> confidently share test result with you.
>
> Regarding reproducing of 'unknown error from peer' and complete logger - We
> don't have any standard way to reproduce this issue, infact we are dependent
> on unknown ServiceBus Broker activity and  we don't have any control on
> this.
>
> Going forward, I will enable all logs including "JmsConnectionListener" and
> Traces logs, and deploy below two applications with 56 and 57-SNAPSHOT. I
> will keep these applications running for next 7-10days, and will update you
> if we got same issue again with all traces
> 1. Deploy application with 56.0 version
> 2. Deploy application with 57.0-SNAPSHOT version
>
> Regards,
> Abhishek Kumar
>
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to