szetszwo commented on PR #667:
URL: https://github.com/apache/ratis/pull/667#issuecomment-1262530747

   I forgot to mention that we also should update the test as below:
   ```java
   +++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSCMInstallSnapshotWithHA.java
    import org.junit.jupiter.api.BeforeEach;
   @@ -273,7 +274,9 @@ public void testInstallCorruptedCheckpointFailure() 
throws Exception {
    
        Assert.assertTrue(logCapture.getOutput()
            .contains("Failed to reload SCM state and instantiate services."));
   -    Assert.assertTrue(followerSM.getLifeCycleState().isPausingOrPaused());
   +    final LifeCycle.State s = followerSM.getLifeCycleState();
   +    Assert.assertTrue("Unexpected lifeCycle state: " + s,
   +        s == LifeCycle.State.NEW || s.isPausingOrPaused());
    
        // Verify correct reloading
        followerSM.setInstallingDBCheckpoint(
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to