Working on a single node cluster and creating a cassandra connection as shown below. I am expecting that if connection will be failed the first time, it will retry after 5s then 2 min, and so on. Even though Cassandra server is up after a few seconds, the _session variable is null. Do I have to call NewSchedule function of Reconnection policy?
_cassandraCluster = Cluster.Builder() .WithSessionName("Cassandra") .AddContactPoint("127.0.0.1").WithPort(9042) .WithRetryPolicy(new CassandraCustomRetryPolicy(3, 3, 2)) .WithReconnectionPolicy(new FixedReconnectionPolicy(400, 5000, 2 * 60000, 15 * 60000)) .Build(); _session = _cassandraCluster.connect(); return _session;