Skip to content

Commit

Permalink
HDDS-11986. Enable SCM Ratis in TestSCMNodeManager (#7624)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiacyu authored Dec 28, 2024
1 parent f125363 commit ddd5433
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ OzoneConfiguration getConf() {
TimeUnit.MILLISECONDS);
conf.setBoolean(HddsConfigKeys.HDDS_SCM_SAFEMODE_PIPELINE_CREATION, false);
conf.setInt(OZONE_SCM_RATIS_PIPELINE_LIMIT, 10);
conf.setBoolean(ScmConfigKeys.OZONE_SCM_HA_ENABLE_KEY, false);
conf.setBoolean(ScmConfigKeys.OZONE_SCM_HA_ENABLE_KEY, true);
return conf;
}

Expand Down Expand Up @@ -283,7 +283,7 @@ public void testScmLayoutOnHeartbeat() throws Exception {
1, TimeUnit.DAYS);

try (SCMNodeManager nodeManager = createNodeManager(conf)) {
assertTrue(scm.checkLeader());
assertTrue(scm.getScmContext().isLeader());
// Register 2 nodes correctly.
// These will be used with a faulty node to test pipeline creation.
DatanodeDetails goodNode1 = registerWithCapacity(nodeManager);
Expand Down Expand Up @@ -402,7 +402,7 @@ public void testScmLayoutOnRegister()
1, TimeUnit.DAYS);

try (SCMNodeManager nodeManager = createNodeManager(conf)) {
assertTrue(scm.checkLeader());
assertTrue(scm.getScmContext().isLeader());
// Nodes with mismatched SLV cannot join the cluster.
registerWithCapacity(nodeManager,
LARGER_SLV_LAYOUT_PROTO, errorNodeNotPermitted);
Expand Down

0 comments on commit ddd5433

Please sign in to comment.