private static void ApplyIndex(EndecaApplication app) { var cluster = new DgraphCluster(app); Logger.Info("Applying index ..."); cluster.ApplyIndex(PauseBetweenUpdates); RollLogServerLog(app); }
private static void TestIndex(DgraphCluster cluster) { Logger.Info("Testing index ..."); var indexOk = cluster.ApplyIndex(new[] { IndexTestHostId }); if (!indexOk) { throw new ControlScriptException( String.Format("Index test failed on {0}. At least one Dgraph instance failed to start.", IndexTestHostId)); } }