bshashikant commented on a change in pull request #2224:
URL: https://github.com/apache/ozone/pull/2224#discussion_r629139192
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java
##########
@@ -296,10 +319,27 @@ public void pause() {
@Override
public void reinitialize() {
- if (getLifeCycleState() == LifeCycle.State.PAUSED) {
- getLifeCycle().transition(LifeCycle.State.STARTING);
- getLifeCycle().transition(LifeCycle.State.RUNNING);
+ Preconditions.checkNotNull(installingDBCheckpoint);
+
+ TermIndex termIndex = null;
+ try {
+ termIndex =
+ scm.getScmHAManager().installCheckpoint(installingDBCheckpoint);
+ } catch (Exception e) {
+ LOG.error("Failed to reinitialize SCMStateMachine.");
+ return;
+ }
+
+ // re-initialize the DoubleBuffer and update the lastAppliedIndex.
Review comment:
misleading comments
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]