[BUG] Spring Cloud Stream Azure Kafka with Managed Identity credential refresh not working #30719
Closed
3 tasks done
Labels
azure-spring
All azure-spring related issues
azure-spring-eventhubs-kafka
Spring event hubs kafka related issues.
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Milestone
Describe the bug
When using
spring-cloud-stream
withEvent Hub Kafka API
and the Azure identity support described here credential is not refreshing and eventually thekafka-client
stops consuming data.Exception or Stack Trace
Log leading up to the problem.
Stack Trace with Exception
To Reproduce
Deploy application according to https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-cloud-stream-binder-java-app-kafka-azure-event-hub#update-configuration and leave it running for more than 24h.
Code Snippet
not applicable
Expected behavior
The credential refresh should work correctly and so the kafka-consumer can keep running for more than 24 hours.
Screenshots
The application keeps running, but the kafka consumer (and corresponding metrics) is gone after 24 hours.
Setup (please complete the following information):
com.azure.spring:spring-cloud-azure-starter:4.3.0
com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3
org.springframework.boot:spring-boot-starter-web:2.7.2
org.springframework.cloud:spring-cloud-stream-binder-kafka:3.2.4
org.springframework.cloud:spring-cloud-stream:3.2.4
org.springframework.kafka:spring-kafka:2.8.8 (*)
]
Additional context
The application is deployed in two separate AKS environments and I encounter the issue on both.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: