vault/sdk/physical
Josh Black ef26498e9c
Implement raft-wal (#21460)
* Implement raft-wal

* go mod tidy

* add metrics, fix a panic

* fix the panic for real this time

* PR feedback

* refactor tests to use a helper and reduce duplication

* add a test to verify we don't use raft-wal if raft.db exists

* add config to enable the verifier

* add tests for parsing verification intervals

* run the verifier in the background

* wire up the verifier

* go mod tidy

* refactor config parsing

* remove unused function

* trying to get the verifier working

* wire up some more verifier bits

* sorted out an error, added a new test, lots of debug logging that needs to come out

* fix a bug and remove all the debugging statements

* make sure we close raft-wal stablestore too

* run verifier tests for both boltdb and raft-wal

* PR feedback

* Vault 20270 docker test raft wal (#24463)

* adding a migration test from boltdb to raftwal and back
adding a migration test using snapshot restore

* feedback

* Update physical/raft/raft.go

Co-authored-by: Paul Banks <pbanks@hashicorp.com>

* PR feedback

* change verifier function

* make this shorter

* add changelog

* Fix Close behavior

* make supporting empty logs more explicit

* add some godocs

---------

Co-authored-by: hamid ghaf <hamid@hashicorp.com>
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
Co-authored-by: Paul Banks <pbanks@hashicorp.com>
2024-01-25 10:08:50 -08:00
..
file adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
inmem Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
cache.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
cache_test.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
encoding.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
encoding_test.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
entry.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
error.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
error_test.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
latency.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
latency_test.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00
physical.go Prevent split-brain active node writes when using Consul (#23013) 2023-09-22 16:16:01 +01:00
physical_access.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
physical_view.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
testing.go Implement raft-wal (#21460) 2024-01-25 10:08:50 -08:00
transactions.go Add support for larger transactions in Raft (#24991) 2024-01-24 14:38:39 +00:00