You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Xu Shao Hong (Jira)" <ji...@apache.org> on 2021/12/30 12:12:00 UTC

[jira] [Created] (RATIS-1481) notifyStateMachineToInstallSnapshot stuck in IN_PROGRESS

Xu Shao Hong created RATIS-1481:
-----------------------------------

             Summary: notifyStateMachineToInstallSnapshot stuck in IN_PROGRESS
                 Key: RATIS-1481
                 URL: https://issues.apache.org/jira/browse/RATIS-1481
             Project: Ratis
          Issue Type: Bug
            Reporter: Xu Shao Hong
            Assignee: Xu Shao Hong


The phenomenon shows that in the ozone cluster, OM fails to install the snapshot. From the OM log, OM state machine has done its part(eg. download Checkpoint, install, load).

The error is due to the completeFuture of ``` stateMachine.followerEvent().notifyInstallSnapshotFromLeader(roleInfoProto, firstAvailableLogTermIndex).whenComplete(...)```, it is an async action. During whenComplete stage, these followings will be executed. 

```

stateMachine.pause();
state.updateInstalledSnapshotIndex(reply);
state.reloadStateMachine(reply.getIndex());
installedSnapshotIndex.set(reply.getIndex());

```

While in the process Math.max(logNextIndex, snapshotNextIndex);



--
This message was sent by Atlassian Jira
(v8.20.1#820001)