Failover is not happening : the two-node failover condition for MCA is not working and the failover doesn’t even occur with 1-node down

Options options = new IsolatedCoordinator.Options()
.topologyBehavior(TopologyBehavior.WRAP_AT_END)
.failoverNumNodes(couchbaseProperties.getFailoverNumNodes())
.gracePeriod(couchbaseProperties.getClusterGracePeriodMilliSeconds())
.clusterSpecs(specs);

And the application.properties has the failover property

couchbase.failoverNumNodes=2

The above issue is working is fine when the failoverNumNodes set to 1. Could anyone please help us on this issue?