MAPREDUCE-4149. [Rumen] Rumen fails to parse certain counter strings. (ravigummadi)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1327461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ravi Gummadi 2012-04-18 11:59:38 +00:00
parent eeec4dc72a
commit 2ada53f107
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,9 @@ Trunk (unreleased changes)
BUG FIXES BUG FIXES
MAPREDUCE-4149. [Rumen] Rumen fails to parse certain counter
strings. (ravigummadi)
MAPREDUCE-4083. [Gridmix] NPE in cpu emulation. (amarrk) MAPREDUCE-4083. [Gridmix] NPE in cpu emulation. (amarrk)
MAPREDUCE-4087. [Gridmix] GenerateDistCacheData job of Gridmix can MAPREDUCE-4087. [Gridmix] GenerateDistCacheData job of Gridmix can

View File

@ -80,6 +80,8 @@ protected static Counters parseCounters(String counters)
} }
counters = counters.replace("\\.", "\\\\."); counters = counters.replace("\\.", "\\\\.");
counters = counters.replace("\\\\{", "\\{");
counters = counters.replace("\\\\}", "\\}");
counters = counters.replace("\\\\(", "\\("); counters = counters.replace("\\\\(", "\\(");
counters = counters.replace("\\\\)", "\\)"); counters = counters.replace("\\\\)", "\\)");
counters = counters.replace("\\\\[", "\\["); counters = counters.replace("\\\\[", "\\[");