Compare commits

...

1 Commits

Author SHA1 Message Date
Hui Fei 5b875befa3 Revert "[SPS]: Fix bug for unit test of reconfiguring SPS mode (#3998)"
This reverts commit 8aa568cea5.
2022-02-28 21:04:44 +08:00
1 changed files with 1 additions and 5 deletions

View File

@ -307,8 +307,6 @@ public class TestNameNodeReconfigure {
StoragePolicySatisfierMode.EXTERNAL.toString(),
nameNode.getConf().get(DFS_STORAGE_POLICY_SATISFIER_MODE_KEY,
DFS_STORAGE_POLICY_SATISFIER_MODE_DEFAULT));
assertNotNull("SPS Manager should be created",
nameNode.getNamesystem().getBlockManager().getSPSManager());
}
/**
@ -324,8 +322,6 @@ public class TestNameNodeReconfigure {
StoragePolicySatisfierMode.NONE.toString());
verifySPSEnabled(nameNode, DFS_STORAGE_POLICY_SATISFIER_MODE_KEY,
StoragePolicySatisfierMode.NONE, false);
assertNull("SPS Manager should be null",
nameNode.getNamesystem().getBlockManager().getSPSManager());
Path filePath = new Path("/testSPS");
DistributedFileSystem fileSystem = cluster.getFileSystem();
@ -349,7 +345,7 @@ public class TestNameNodeReconfigure {
.getNamesystem().getBlockManager().getSPSManager();
boolean isSPSRunning = spsMgr != null ? spsMgr.isSatisfierRunning()
: false;
assertEquals(property + " has wrong value", isSatisfierRunning, isSPSRunning);
assertEquals(property + " has wrong value", isSPSRunning, isSPSRunning);
String actual = nameNode.getConf().get(property,
DFS_STORAGE_POLICY_SATISFIER_MODE_DEFAULT);
assertEquals(property + " has wrong value", expected,