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

Guard against using Raft as a seperate HA Storage #8239

Merged
merged 4 commits into from
Feb 14, 2020
Merged

Conversation

catsby
Copy link
Contributor

@catsby catsby commented Jan 24, 2020

Guard against configuration that would use Raft solely for HA (e.g. ha_storage "raft" with non-raft storage) This "fixes" #8206 by preventing it from happening when parsing the config, but also guarding against calling any methods if the internal raft backend is nil.

It seems raft isn't initialized or started unless it's the primary physical storage used. Internally in the unseal process, startRaftStorage gets called which setups the the raft cluster for storage, but it is not called for the configured HA backend. That may be an easy addition later, but for now we document the limitation and block it from happening to prevent further panics as shown in #8206

@catsby catsby marked this pull request as ready for review January 24, 2020 22:18
@catsby catsby self-assigned this Jan 27, 2020
@chrishoffman chrishoffman added this to the 1.3.3 milestone Jan 30, 2020
vishalnayak
vishalnayak previously approved these changes Feb 10, 2020
briankassouf
briankassouf previously approved these changes Feb 14, 2020
@catsby catsby dismissed stale reviews from briankassouf and vishalnayak via ad0fd15 February 14, 2020 19:37
@catsby catsby merged commit e87f018 into master Feb 14, 2020
catsby added a commit that referenced this pull request Feb 14, 2020
* Guard against using Raft as a seperate HA Storage

* Document that Raft cannot be used as a seperate ha_storage backend at this time

* remove duplicate imports from updating with master
catsby added a commit that referenced this pull request Feb 14, 2020
* Guard against using Raft as a seperate HA Storage

* Document that Raft cannot be used as a seperate ha_storage backend at this time

* remove duplicate imports from updating with master
@ncabatoff ncabatoff deleted the b-no-separate-raft-ha branch July 21, 2021 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants