Bug 6540: Fix journal issues on leader changes
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / FollowerLogInformationImpl.java
index a8a33c30b20ef3c95c3f16003e3110e1227fad90..9d58288282e46770f1010f10389415ba334f4c5d 100644 (file)
@@ -182,7 +182,9 @@ public class FollowerLogInformationImpl implements FollowerLogInformation {
 
     @Override
     public void setLeaderInstallSnapshotState(@Nonnull LeaderInstallSnapshotState state) {
-        this.installSnapshotState = Preconditions.checkNotNull(state);
+        if(this.installSnapshotState == null) {
+            this.installSnapshotState = Preconditions.checkNotNull(state);
+        }
     }
 
     @Override