// Report accumulators to JobManager
synchronized (env.getAccumulatorProtocolProxy()) {
try {
env.getAccumulatorProtocolProxy().reportAccumulatorResult(
new AccumulatorEvent(env.getJobID(), accumulators));
} catch (IOException e) {
throw new RuntimeException("Communication with JobManager is broken. Could not send accumulators.", e);
}
}