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:
Suresh Srinivas 2012-08-21 22:25:49 +00:00
parent 6c0ccb5989
commit 557b937f47
2 changed files with 5 additions and 2 deletions

View File

@ -193,6 +193,9 @@ Trunk (unreleased changes)
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 )
INCOMPATIBLE CHANGES

View File

@ -420,8 +420,8 @@ public class TestHASafeMode {
restartActive();
}
private void assertSafeMode(NameNode nn, int safe, int total) {
String status = nn1.getNamesystem().getSafemode();
private static void assertSafeMode(NameNode nn, int safe, int total) {
String status = nn.getNamesystem().getSafemode();
if (safe == total) {
assertTrue("Bad safemode status: '" + status + "'",
status.startsWith(