Couchbase java client auto-reconnect issue

I have a spring boot application with Couchbase Server and I’m using java client version 3.0.1. When I start the application while the Couchbase server is running, as expected it’s getting connected and works fine.
Also, if the server restarted client manages to reconnect successfully.
But my problem is when I start the application if the Couchbase server is not up and running the application will start with errors ( Couchbase connection failures). But once the server gets up and running client will not get connected automatically.

I saw this post but the solution is not there

Hello @Ihide do you have retry strategy configured ?

Hi All ,
After digging into SDK I found it was a bug in SDK. And it’s been fixed since version 3.1.5.