Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nil/empty cluster metadata #8078

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Commits on May 29, 2020

  1. Handle nil/empty cluster metadata

    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>
    ```
    Mahmood Ali committed May 29, 2020
    Configuration menu
    Copy the full SHA
    d5350c1 View commit details
    Browse the repository at this point in the history