// create the RaidNode
Configuration raidConf = getRaidNodeConfig(conf, true);
cnode = RaidNode.createRaidNode(null, raidConf);
// wait for the trigger monitor to scan the raid candidates.
TriggerMonitor monitor = cnode.getTriggerMonitor();
long startTime = System.currentTimeMillis();
while (monitor.getLastTriggerTime() == 0 &&
System.currentTimeMillis() - startTime < 60000) {
Thread.sleep(500);
LOG.info("Wait for the first round of TriggerMonitor to finish.");
}