When I try to run the project with cassandra and the following…
management:
metrics:
binder:
cassandra:
enabled: true
The app just hangs. While investigating I think it is due to Micrometer being 1.6.x in Datastax and 1.10.x in Spring boot 3. However, Spring boot won’t run with 1.6 so I can’t confirm for sure.
I think this may be a bug for anyone using Spring Boot 3+, cassandra, and session logging.
Environment
Cloud Foundry Spring Boot 3 Java Application
Pull Requests
None
Activity
Show:
Jarosław Dembek
October 25, 2024 at 11:44 AM
(edited)
I believe this time it is a Spring dependent problem. Applying fix (change spanContext bean impl) from referenced GH issue definitely resolved the problem of hanging (actually no initial OPTIONS command sent despite driver TRACE logs suggested it was sent) during app startup. It's repeatable but depends on actual spring ctx init order so modifying ctx (e.g. new spring boot starter for sth used) can make it disappear or appear. https://github.com/spring-projects/spring-framework/issues/32996#issuecomment-2302336094
When I try to run the project with cassandra and the following…
management:
metrics:
binder:
cassandra:
enabled: true
The app just hangs. While investigating I think it is due to Micrometer being 1.6.x in Datastax and 1.10.x in Spring boot 3. However, Spring boot won’t run with 1.6 so I can’t confirm for sure.
I think this may be a bug for anyone using Spring Boot 3+, cassandra, and session logging.