MAPREDUCE-5708. Duplicate String.format in

YarnOutputFiles.getSpillFileForWrite. Contributed by Konstantin Weitz.
This commit is contained in:
Devaraj K 2015-05-14 22:09:54 +05:30
parent def9136e02
commit 05ff54c66c
2 changed files with 5 additions and 2 deletions

View File

@ -422,6 +422,9 @@ Release 2.8.0 - UNRELEASED
MAPREDUCE-6366. mapreduce.terasort.final.sync configuration in TeraSort
doesn't work. (Takuya Fukudome via ozawa)
MAPREDUCE-5708. Duplicate String.format in YarnOutputFiles.getSpillFileForWrite.
(Konstantin Weitz via devaraj)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -157,8 +157,8 @@ public class YarnOutputFiles extends MapOutputFile {
public Path getSpillFileForWrite(int spillNumber, long size)
throws IOException {
return lDirAlloc.getLocalPathForWrite(
String.format(String.format(SPILL_FILE_PATTERN,
conf.get(JobContext.TASK_ATTEMPT_ID), spillNumber)), size, conf);
String.format(SPILL_FILE_PATTERN,
conf.get(JobContext.TASK_ATTEMPT_ID), spillNumber), size, conf);
}
/**