}
final FileRegion partition = new DefaultFileRegion(
spill.getChannel(), info.startOffset, info.partLength);
ChannelFuture writeFuture = ch.write(partition);
writeFuture.addListener(new ChanneFutureListenerMetrics(partition));
shuffleMetrics.outputBytes(info.partLength); // optimistic
LOG.info("Sending out " + info.partLength + " bytes for reduce: " +
reduce + " from map: " + mapId + " given " +
info.partLength + "/" + info.rawLength);
return writeFuture;
}