Open jarekhr opened 9 months ago
Hi @Netyyyy can someone from your team take a look?
Hi @jarekhr ,Thank you for reporting this issue. We have received your submission and will take a look. We appreciate your input and will review this matter as soon as possible. Please feel free to provide any additional information or context that you think may be helpful. We'll keep you updated on the progress of our review.
Describe the bug Every exactly 24h our JMS client disconnects from Azure Service Bus with
ExpiredToken
error message. Error messages are then reported in logs for 10 minutes. After 10 minutes app reconnects (apparently somehow library manages to get refreshed access token) and the connectivity works fine for the next 24h. Problem cycle takes 24h and 10minutes, each time connection is active for 24h, then disconnection for 10min, then connection restored, and so on.Exception or Stack Trace WARN messages reported by qpid
After 10 minutes we observed also the stack trace, logged under
WARN
from threadQpidJMS Connection Executor: ID:2a15d2b5-1aa4-4d4e-957e-e557e58c4d5a:1:
To Reproduce Steps to reproduce the behavior:
spring-cloud-azure-starter-servicebus-jms
for over 24h. App is configured exactly as explained in documentationspring-cloud-azure-starter-servicebus-jms
library, complaining about expired tokenCode Snippet Nothing, connection related - listening on topic as per documentation.
Expected behavior I expect connection to Azure Service Bus to be operational at all times (no outages for 10 minutes every 24h). Access tokens used underneath to implement the
passwordless
connection should be refreshed automatically and ahead of token expiration - to ensure there's no disruption on the client app side.Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
com.azure.spring:spring-cloud-azure-starter-servicebus-jms
, we use version5.8.0
Additional context We're using
spring-cloud-azure-starter-servicebus-jms
to listen on Azure Service Bus topic, using JMS APIs. Our app is a Spring Boot server app. We use "passwordless" connections (AAD access tokens used underneath), app is configured exactly as explained in documentation. Aps is running on Azure Spring Apps - we don't have control over the system clock (so clocks misalignment can be ruled out). This seems to be a problem with AAD token refresh - it does not happen on time or is not applied correctly?