HDFS-3827. TestHASafeMode#assertSafemode method should be made static. Contributed by Jing Zhao
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1375828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c0ccb5989
commit
557b937f47
|
@ -193,6 +193,9 @@ Trunk (unreleased changes)
|
||||||
|
|
||||||
HDFS-3792. Fix two findbugs introduced by HDFS-3695 (todd)
|
HDFS-3792. Fix two findbugs introduced by HDFS-3695 (todd)
|
||||||
|
|
||||||
|
HDFS-3827. TestHASafeMode#assertSafemode method should be made static.
|
||||||
|
(Jing Zhao via suresh)
|
||||||
|
|
||||||
Branch-2 ( Unreleased changes )
|
Branch-2 ( Unreleased changes )
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -420,8 +420,8 @@ public class TestHASafeMode {
|
||||||
restartActive();
|
restartActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertSafeMode(NameNode nn, int safe, int total) {
|
private static void assertSafeMode(NameNode nn, int safe, int total) {
|
||||||
String status = nn1.getNamesystem().getSafemode();
|
String status = nn.getNamesystem().getSafemode();
|
||||||
if (safe == total) {
|
if (safe == total) {
|
||||||
assertTrue("Bad safemode status: '" + status + "'",
|
assertTrue("Bad safemode status: '" + status + "'",
|
||||||
status.startsWith(
|
status.startsWith(
|
||||||
|
|
Loading…
Reference in New Issue