Commit aaa0273
Aaron Lehmann
raft: ForceNewCluster flag should only apply at startup
ForceNewCluster tells raft to use the existing state to create a new
cluster with a single member. This means that when first reading the
WAL/snapshot, the other existing managers are removed.
However, it doesn't make sense to do this more than once. For example,
if other managers are added to the cluster, and one of them takes over
as the leader, and sends the initial leader a snapshot, that snapshot
should be accepted without modifications.
Change the ForceNewCluster flag to only apply on startup.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>1 parent a30b34d commit aaa0273
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
| |||
192 | 188 | | |
193 | 189 | | |
194 | 190 | | |
195 | | - | |
196 | 191 | | |
197 | 192 | | |
198 | 193 | | |
| |||
362 | 357 | | |
363 | 358 | | |
364 | 359 | | |
365 | | - | |
| 360 | + | |
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
| |||
0 commit comments