committer.setupJob(jContext);
committer.setupTask(tContext);
TextOutputFormat theOutputFormat = new TextOutputFormat();
RecordWriter theRecordWriter =
theOutputFormat.getRecordWriter(null, conf, partFile, null);
<BUG>writeOutput(theRecordWriter, tContext);
committer.commitTask(tContext);
Path jobTempDir1 = committer.getCommittedTaskPath(tContext);</BUG>
File jtd1 = new File(jobTempDir1.toUri().getPath());
assertTrue(jtd1.exists());

committer.setupJob(jContext);
committer.setupTask(tContext);
TextOutputFormat theOutputFormat = new TextOutputFormat();
RecordWriter theRecordWriter =
theOutputFormat.getRecordWriter(null, conf, partFile, null);
writeOutput(theRecordWriter, tContext);
if(committer.needsTaskCommit(tContext)) {
committer.commitTask(tContext);
}
Path jobTempDir1 = committer.getCommittedTaskPath(tContext);
File jtd1 = new File(jobTempDir1.toUri().getPath());
assertTrue(jtd1.exists());
