Merge -c 1180769 from trunk to branch-0.23 to fix MAPREDUCE-3153.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1180770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c4c9b7edc7
commit
bcc1745434
|
@ -1515,6 +1515,9 @@ Release 0.23.0 - Unreleased
|
||||||
MAPREDUCE-2876. Use a different config for ContainerAllocationExpirer.
|
MAPREDUCE-2876. Use a different config for ContainerAllocationExpirer.
|
||||||
(Anupam Seth via acmurthy)
|
(Anupam Seth via acmurthy)
|
||||||
|
|
||||||
|
MAPREDUCE-3153. Fix TestFileOutputCommitter which was broken by
|
||||||
|
MAPREDUCE-2702. (mahadev via acmurthy)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.hadoop.mapreduce.TaskAttemptID;
|
||||||
import org.apache.hadoop.mapreduce.task.JobContextImpl;
|
import org.apache.hadoop.mapreduce.task.JobContextImpl;
|
||||||
import org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl;
|
import org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl;
|
||||||
|
|
||||||
|
|
||||||
public class TestFileOutputCommitter extends TestCase {
|
public class TestFileOutputCommitter extends TestCase {
|
||||||
private static Path outDir = new Path(System.getProperty("test.build.data",
|
private static Path outDir = new Path(System.getProperty("test.build.data",
|
||||||
"/tmp"), "output");
|
"/tmp"), "output");
|
||||||
|
@ -187,9 +188,9 @@ public class TestFileOutputCommitter extends TestCase {
|
||||||
assertNotNull(th);
|
assertNotNull(th);
|
||||||
assertTrue(th instanceof IOException);
|
assertTrue(th instanceof IOException);
|
||||||
assertTrue(th.getMessage().contains("fake delete failed"));
|
assertTrue(th.getMessage().contains("fake delete failed"));
|
||||||
File jobTmpDir = new File(new Path(outDir,
|
String filename = committer.getTaskAttemptBaseDirName(tContext);
|
||||||
FileOutputCommitter.TEMP_DIR_NAME).toString());
|
File jobTmpDir = new File(outDir.toString(), committer.getJobAttemptBaseDirName(jContext));
|
||||||
File taskTmpDir = new File(jobTmpDir, "_" + taskID);
|
File taskTmpDir = new File(outDir.toString(), filename);
|
||||||
File expectedFile = new File(taskTmpDir, partFile);
|
File expectedFile = new File(taskTmpDir, partFile);
|
||||||
assertTrue(expectedFile + " does not exists", expectedFile.exists());
|
assertTrue(expectedFile + " does not exists", expectedFile.exists());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue