[QUERY] Service bus - maxConcurrentSessions internal management #43817
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Query/Question
I'm trying to understand how connections to the bus are managed internally in the event of queues with the active session and a maximum number of active sessions > 1. In particular, looking at the logs, it seems that from the start of the application until it is closed , the create link, token renewal, etc. operations are carried out for the maximum number of potentially active sessions, even if there is no message in the queue. So, for example, set a maxConcurrentSessions = 5 and we have only one message with sessiondId = 1 we still have the same operations repeated 5 times. Shouldn't the number of such operations depend on the number of actually active sessions?
An example of what we got. This is repeated every time
`2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_1ab516_1737017668077","entityPath":"SOME.SOME.QUEUE.NAME","linkName":"session-_d525a4_1737017964120"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_1ab516_1737017668077","entityPath":"SOME.SOME.QUEUE.NAME","linkName":"session-_dde554_1737017964117"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_1ab516_1737017668077","entityPath":"SOME.SOME.QUEUE.NAME","linkName":"session-_5bd90d_1737017964121"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_1ab516_1737017668077","entityPath":"SOME.SOME.QUEUE.NAME","linkName":"session-_b545f0_1737017964119"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"onLinkFinal","connectionId":"MF_1ab516_1737017668077","linkName":"session-_3571a2_1737017964120","entityPath":"SOME.SOME.QUEUE.NAME"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"onLinkFinal","connectionId":"MF_1ab516_1737017668077","linkName":"session-_d525a4_1737017964120","entityPath":"SOME.SOME.QUEUE.NAME"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"onLinkFinal","connectionId":"MF_1ab516_1737017668077","linkName":"session-_dde554_1737017964117","entityPath":"SOME.SOME.QUEUE.NAME"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"onLinkFinal","connectionId":"MF_1ab516_1737017668077","linkName":"session-_5bd90d_1737017964121","entityPath":"SOME.SOME.QUEUE.NAME"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.h.ReceiveLinkHandler2 - {"az.sdk.message":"onLinkFinal","connectionId":"MF_1ab516_1737017668077","linkName":"session-_b545f0_1737017964119","entityPath":"SOME.SOME.QUEUE.NAME"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.ReactorSession - {"az.sdk.message":"Creating a new receiver link.","connectionId":"MF_1ab516_1737017668077","sessionName":"QUEUE.NAME","sessionId":"H_68bd1d_1737017668689","linkName":"session-_466bf6_1737018023121"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.ReactorSession - {"az.sdk.message":"Creating a new receiver link.","connectionId":"MF_1ab516_1737017668077","sessionName":"QUEUE.NAME","sessionId":"H_68bd1d_1737017668689","linkName":"session-_70a22c_1737018023122"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.ReactorSession - {"az.sdk.message":"Creating a new receiver link.","connectionId":"MF_1ab516_1737017668077","sessionName":"QUEUE.NAME","sessionId":"H_68bd1d_1737017668689","linkName":"session-_d67e69_1737018023123"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.ReactorSession - {"az.sdk.message":"Creating a new receiver link.","connectionId":"MF_1ab516_1737017668077","sessionName":"QUEUE.NAME","sessionId":"H_68bd1d_1737017668689","linkName":"session-_267118_1737018023124"}
2025-01-16 10:00:23 [reactor-executor-1] [/] INFO c.a.c.a.i.ReactorSession - {"az.sdk.message":"Creating a new receiver link.","connectionId":"MF_1ab516_1737017668077","sessionName":"QUEUE.NAME","sessionId":"H_68bd1d_1737017668689","linkName":"session-_f95aaf_1737018023125"}`
Our actual config
Why is this not a Bug or a feature Request?
Need clarification on how maxConcurrentSession internally works
Setup (please complete the following information if applicable):
azure-messaging-servicebus:7.17.7
azure-core-amqp:2.9.11
The text was updated successfully, but these errors were encountered: