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