-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with binding Redis and SCS Config Server #204
Comments
FYI since the Spring Cloud Bindings library does for Kubernetes service bindings what Java CFEnv does for CF/TAS services, that project has to make changes as well as shown here. |
Thanks @karolpawlak for reporting this. We have encountered a similar issue and hope that the fix will soon be available for us in the java-cfenv-boot dependency, thanks to @pivotal-david-osullivan. Our team plans to add JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}' to the manifest file to suppress the warning explained at https://via.vmw.com/EiBW. We would greatly appreciate it if a new release is available before the end of March with Redis fix. |
Great stuff, thanks @rama78. Well done @pivotal-david-osullivan 👏 |
@pivotal-david-osullivan - can you please update when this bug will be fixed? |
* for now, just Redis
in progress: #207 |
Thanks, @anthonydahanne for the update .. looking forward to a new lease! |
* Redis and Cassandra
* using SP2 and a SP3 based test projects; very much like: spring-cloud/spring-cloud-bindings@d3290fa
* Redis and Cassandra
* using SP2 and a SP3 based test projects; very much like: spring-cloud/spring-cloud-bindings@d3290fa
* using SP2 and a SP3 based test projects; very much like: spring-cloud/spring-cloud-bindings@d3290fa
# Support for SB2 continuing on the 2.5.x branch
# Support for SB3 now on main branch
* incompatibility with JMockit and Java 17, see: jmockit/jmockit1#615 and https://github.com/jmockit/jmockit1
* Upgrade dependencies and tools * use more recent gradle * Upgrade Spring boot version to latest bug fix * Close #204: Add integration tests * using SP2 and a SP3 based test projects; very much like: spring-cloud/spring-cloud-bindings@d3290fa * Close #204 SpringBoot2-only support on 2.5.x branch
Hello Team,
We observed that one of our customers since switching to Spring Boot 3, their application no longer starts and that results in the error (full error stack attached):
When the application was using Spring Boot 2.7.3, it worked no problem. Another interesting thing we noticed is that when you remove the Config Server and its dependency, everything works fine. They have managed to find a workaround by manually specifying the datasource configuration in the application.yml file. By redefining Redis properties by copying spring.redis.x to spring.data.redis.x, and it works.
They are using the following versions of products:
TAS 2.13.9
Spring Cloud Services 3.1.40
Redis 3.1.3-build.2
We believe that the problem is in java-cfenv. The root cause: Spring Boot 3.0 now uses a new path for configuring Redis. It used to be spring.redis.x, now it’s spring.data.redis.x. I believe that the following source file should be looked into in java-cfenv.
You can find the sample app used for testing in this repository, it also contains a README with the description of the issue and a workaround https://github.com/benpart/redis-demo
Reproduction steps:
FAIL
INVESTIGATION
WORKAROUND
The text was updated successfully, but these errors were encountered: