spring-projects / spring-projects/spring-data-couchbase
ConfigException when used together with spring boot devtools
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 284
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
In a Spring Boot application (Spring Boot 2.7.3) using both spring-boot-starter-couchbase and spring-boot-starter-devtools during application startup this exception happens:
com.couchbase.client.core.error.ConfigException: Could not locate a single global configuration
The application runs fine nevertheless and is passing all tests.
[ Edit: later discovered it was not related to devtools ]
However, if I boot the application with devtools disabled (spring.devtools.add-properties=false), the exception does not happen. So it looks like spring devtools and spring boot data couchbase interfere with each other.
This is with a dockerized couchbase cluster setup and a connection string contacting each node via localhost on different management ports. This is the connection string:
spring.couchbase.connection-string=couchbase://127.0.0.1?io.networkResolution=external&timeout.kvTimeout=10s,\
couchbase://127.0.0.1:11210?io.networkResolution=external&timeout.kvTimeout=10s,\
couchbase://127.0.0.1:12210?io.networkResolution=external&timeout.kvTimeout=10s
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing application startup with spring-boot-starter-couchbase, spring-boot-starter-devtools, and the Dockerized Couchbase connection string shown in the issue. Compare startup with devtools enabled and with spring.devtools.add-properties=false, while checking the reported ConfigException and the later note that devtools may not be the cause. Done means identifying the triggering configuration or confirming the issue is unrelated to devtools.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100