I am working on a spring boot application that requires 2 couchbase buckets. I have followed recent examples for implementing this in my app but I am getting timeout exceptions when the configureRepositoryOperationsMapping method in my CouchbaseConfig class executes baseMapping.mapEntity(…, …) on my second bucket. After the timeout exception the application continues to build and I see that the second bucket has connected, after which I can still query the bucket directly but calls to repository methods have empty returns. More perplexing is that sometimes the application starts up without any errors and everything works as expected.
Thanks in advance for your help!
Java version: 8
Spring boot version: 1.5.9
Spring data couchbase version: 2.2.0