YARN-1832. Fix wrong MockLocalizerStatus#equals implementation. Contributed by Hong Zhiguo.

This commit is contained in:
Akira Ajisaka 2015-05-08 11:14:45 +09:00
parent f489a4ec96
commit b167fe7605
2 changed files with 4 additions and 1 deletions

View File

@ -336,6 +336,9 @@ Release 2.8.0 - UNRELEASED
YARN-2918. RM should not fail on startup if queue's configured labels do
not exist in cluster-node-labels. (Wangda Tan via jianhe)
YARN-1832. Fix wrong MockLocalizerStatus#equals implementation.
(Hong Zhiguo via aajisaka)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -67,7 +67,7 @@ public boolean equals(Object o) {
return false;
}
MockLocalizerStatus other = (MockLocalizerStatus) o;
return getLocalizerId().equals(other)
return getLocalizerId().equals(other.getLocalizerId())
&& getResources().containsAll(other.getResources())
&& other.getResources().containsAll(getResources());
}