use of org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskResult in project ignite by apache.
the class IdleVerify method legacyCacheIdleVerify.
/**
* @param client Client.
* @param clientCfg Client configuration.
*/
private void legacyCacheIdleVerify(GridClient client, GridClientConfiguration clientCfg, Logger logger) throws GridClientException {
VisorIdleVerifyTaskResult res = executeTask(client, VisorIdleVerifyTask.class, new VisorIdleVerifyTaskArg(args.caches(), args.excludeCaches(), args.isSkipZeros(), args.getCacheFilterEnum(), args.idleCheckCrc()), clientCfg);
Map<PartitionKey, List<PartitionHashRecord>> conflicts = res.getConflicts();
if (conflicts.isEmpty()) {
logger.info("The check procedure has finished, no conflicts have been found.");
logger.info("");
} else {
logger.info("The check procedure has finished, found " + conflicts.size() + " conflict partitions.");
logger.info("");
for (Map.Entry<PartitionKey, List<PartitionHashRecord>> entry : conflicts.entrySet()) {
logger.info("Conflict partition: " + entry.getKey());
logger.info("Partition instances: " + entry.getValue());
}
}
}
Aggregations