private void onSnapshotSaveSync(final ApplyTask task) {
        this.currTask = TaskType.SNAPSHOT_SAVE;
        if (passByStatus(task.done)) {
            doSnapshotSave((SaveSnapshotClosure) task.done);
        }
    }
Closure runs with an error.
@author boyan (boyan@alibaba-inc.com)

2018-Apr-04 2:20:31 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java