Best practice to open couchbase cluster and bucket

@daschl I have attached the logs that we received in this query: Couchbase operations are failing after couchbase server is restarted
I have also attached a sample application that you can use to run and check the behaviour that we are getting. I have added an endpoint with @GetMapping(“/data/{dataId}”) and I have attached all the necessary instruction to make it run in the README.md file. This endpoint hits the couchbase and returns expected result. It works until we restart the couchbase or stop and start the server. But right after the server starts after stopping, we are getting timeout errors and we are not able to perform any operations to the couchbase.
I used a couchbase docker image and i started the couchbase and checked. Then I stopped the container, and then again I started it. So now is when its not working. In environment, there are scenarios in which the couchbase server is down for a minute or two for maintenance. So, we will be facing such scenarios there too. I tried to replicate it locally.

couchbase-sample-file.zip (76.2 KB)