Closed jeantichoc closed 1 year ago
You mean this constructor correct? v2.1.3...v2.1.4#diff-9e9e0c4db217f6f67874b64ac5b3b3cf581ade2ab93cc9456d7156d2207e359dR59
Yes, this is the one we are using at a lot of different places 😅
@jeantichoc check out this PR and see if it looks good https://github.com/spring-cloud/spring-cloud-circuitbreaker/pull/157
yes, that's what I had in mind, and it's seems to work fine, wasn't sure about setting the Resilience4jBulkheadProvider to null, I have to read more documentation, but I saw some null check at some places so I guess it could work as before with this :)
Thanks @ryanjbaxter !
No problem thanks for opening the issue!
Just an FYI I removed all deprecated constructors in the main branch.
No problem thanks for opening the issue!
Just an FYI I removed all deprecated constructors in the main branch.
Perfect! We will rework/rethink our circuit breaker management accordingly. There's some new features we missed since our first implemention 🙂
Why did you reopen the issue?
Very sorry, I leave my phone to my nephew for 1 minute, and he seems to want to experiment with GitHub 🥲.
Describe the bug
Going from Spring Cloud 2021.0.3 to 2021.0.4, we are experiencing NullPointerException while dealing with CircuitBreaker. I think it's because we are still using a deprecated constructor
new Resilience4JCircuitBreakerFactory()
(I know, I know, we are lazy)It's seems that the old deprecated constructor miss a initialisation for resilience4JConfigurationProperties. https://github.com/spring-cloud/spring-cloud-circuitbreaker/compare/v2.1.3...v2.1.4#diff-9e9e0c4db217f6f67874b64ac5b3b3cf581ade2ab93cc9456d7156d2207e359d
Sample