Customize Couchbase's socket connect timeout
Our Windows build is failing currently because the couchbase server does not handle a socket connection within a second (the default). This commit adds a property to customize this option and set it to 10 sec in the sample. While investigating this issue, it turns out that while `CouchbaseConfiguration` is public, it is not really possible to extend it in user's configuration. This commit fixes this problem and add a test that demonstrates how it can be used. Closes gh-5657
This commit is contained in:
@@ -505,6 +505,7 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.couchbase.env.timeouts.connect=5000 # Bucket connections timeout in milliseconds.
|
||||
spring.couchbase.env.timeouts.key-value=2500 # Blocking operations performed on a specific key timeout in milliseconds.
|
||||
spring.couchbase.env.timeouts.query=7500 # N1QL query operations timeout in milliseconds.
|
||||
spring.couchbase.env.timeouts.socket-connect=1000 # Socket connect connections timeout in milliseconds.
|
||||
spring.couchbase.env.timeouts.view=7500 # Regular and geospatial view operations timeout in milliseconds.
|
||||
|
||||
# DAO ({sc-spring-boot-autoconfigure}/dao/PersistenceExceptionTranslationAutoConfiguration.{sc-ext}[PersistenceExceptionTranslationAutoConfiguration])
|
||||
|
||||
Reference in New Issue
Block a user