You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Konstantin Weitz (JIRA)" <ji...@apache.org> on 2014/01/04 18:38:54 UTC
[jira] [Created] (MAPREDUCE-5708) Duplicate String.format in
getSpillFileForWrite
Konstantin Weitz created MAPREDUCE-5708:
-------------------------------------------
Summary: Duplicate String.format in getSpillFileForWrite
Key: MAPREDUCE-5708
URL: https://issues.apache.org/jira/browse/MAPREDUCE-5708
Project: Hadoop Map/Reduce
Issue Type: Bug
Reporter: Konstantin Weitz
Priority: Minor
The code responsible for formatting the spill file name (namely {code}getSpillFileForWrite{code}) unnecessarily calls {code}String.format{code} twice. This does not only affect performance, but leads to the weird requirement that task attempt ids cannot contain {code}%{code} characters (because these would be interpreted as format specifiers in the outside {code}String.format{code} call).
I assume this was done by mistake, as it could only be useful if task attempt ids contained {code}%n{code}.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)