Example #1
0
            public static void DiscardCluster()
            {
                if (cluster != null)
                {
                    cluster.Shutdown();
                }

                if (cassandraCluster == null)
                {
                    Trace.TraceError("No cluster to discard");
                }
                else if (erroredOut)
                {
                    cassandraCluster.Stop();
                    Trace.TraceInformation("Error during tests, kept C* logs in " + cassandraCluster._ccmDir);
                }
                else
                {
                    cassandraCluster.Remove();
                    cassandraCluster._ccmDir.Delete();
                }
            }