LOG.info("Task:" + taskAttemptId + " is done."
+ " And is in the process of committing");
// TODO change this to use the new context
// TODO TEZ Interaciton between Commit and OutputReady. Merge ?
if (output instanceof MROutputLegacy) {
MROutputLegacy sOut = (MROutputLegacy)output;
if (sOut.isCommitRequired()) {
//wait for commit approval and commit
// TODO EVENTUALLY - Commit is not required for map tasks.
// skip a couple of RPCs before exiting.
commit(sOut);
}