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

   @captainzmc ,  for 
https://github.com/captainzmc/hadoop-ozone/actions/runs/3098099863/jobs/5015584764#step:6:3146
 , we may check LifeCycle state as below.
   
   ```java
   +++ 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java
   @@ -353,8 +353,11 @@ public void notifyConfigurationChanged(long term, long 
index,
    
      @Override
      public void pause() {
   -    getLifeCycle().transition(LifeCycle.State.PAUSING);
   -    getLifeCycle().transition(LifeCycle.State.PAUSED);
   +    final LifeCycle lc = getLifeCycle();
   +    if (lc.getCurrentState() != LifeCycle.State.NEW) {
   +      lc.transition(LifeCycle.State.PAUSING);
   +      lc.transition(LifeCycle.State.PAUSED);
   +    }
      }
    
      @Override
   ```
   
   BTW, could you share the Ratis code being tested with Ozone?  I tried to use 
Ratis branch-2 but got some different errors.


-- 
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