37c6160b96
Handle case where a snapshot is made before cluster metadata is created. This fixes a bug where a server may have empty cluster metadata if it created and installed a Raft snapshot before a new cluster metadata ID is generated. This case is very unlikely to arise. Most likely reason is when upgrading from an old version slowly where servers may use snapshots before all servers upgrade. This happened for a user with a log line like: ``` 2020-05-21T15:21:56.996Z [ERROR] nomad.fsm: ClusterSetMetadata failed: error=""set cluster metadata failed: refusing to set new cluster id, previous: , new: <<redacted> ``` |
||
---|---|---|
.. | ||
autopilot.go | ||
autopilot_test.go | ||
iterator.go | ||
schema.go | ||
schema_test.go | ||
state_store.go | ||
state_store_oss.go | ||
state_store_test.go | ||
testing.go | ||
testing_oss.go |