YARN-1832. Fix wrong MockLocalizerStatus#equals implementation. Contributed by Hong Zhiguo.
(cherry picked from commit b167fe7605
)
This commit is contained in:
parent
d817fbb34d
commit
170f1b0afd
|
@ -291,6 +291,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-2918. RM should not fail on startup if queue's configured labels do
|
YARN-2918. RM should not fail on startup if queue's configured labels do
|
||||||
not exist in cluster-node-labels. (Wangda Tan via jianhe)
|
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
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class MockLocalizerStatus implements LocalizerStatus {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MockLocalizerStatus other = (MockLocalizerStatus) o;
|
MockLocalizerStatus other = (MockLocalizerStatus) o;
|
||||||
return getLocalizerId().equals(other)
|
return getLocalizerId().equals(other.getLocalizerId())
|
||||||
&& getResources().containsAll(other.getResources())
|
&& getResources().containsAll(other.getResources())
|
||||||
&& other.getResources().containsAll(getResources());
|
&& other.getResources().containsAll(getResources());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue