use of org.apache.ignite.internal.visor.util.VisorExceptionWrapper in project ignite by apache.
the class VisorNodeDataCollectorTask method reduce.
/**
* @param taskRes Task result.
* @param results Results.
* @return Data collector task result.
*/
protected VisorNodeDataCollectorTaskResult reduce(VisorNodeDataCollectorTaskResult taskRes, List<ComputeJobResult> results) {
for (ComputeJobResult res : results) {
VisorNodeDataCollectorJobResult jobRes = res.getData();
if (jobRes != null) {
UUID nid = res.getNode().id();
IgniteException unhandledEx = res.getException();
if (unhandledEx == null)
reduceJobResult(taskRes, jobRes, nid);
else {
// Ignore nodes that left topology.
if (!(unhandledEx instanceof ClusterGroupEmptyException))
taskRes.getUnhandledEx().put(nid, new VisorExceptionWrapper(unhandledEx));
}
}
}
taskRes.setActive(ignite.active());
return taskRes;
}
Aggregations