diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 6312fc8e11..7bddd9ea58 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -153,6 +153,11 @@ Trunk (unreleased changes) HADOOP-8413. test-patch.sh gives out the wrong links for newPatchFindbugsWarnings (Colin Patrick McCabe via bobby) + HADOOP-6871. When the value of a configuration key is set to its + unresolved form, it causes the IllegalStateException in + Configuration.get() stating that substitution depth is too large. + (Arvind Prabhakar via harsh) + OPTIMIZATIONS HADOOP-7761. Improve the performance of raw comparisons. (todd) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 9384b87901..917f97c69b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -617,7 +617,13 @@ private String substituteVars(String expr) { } Matcher match = varPat.matcher(""); String eval = expr; + Set evalSet = new HashSet(); for(int s=0; s