open-nomad/helper
Michael Schurter 4949488217 cli: return error from raft commands if db is open
Before this change trying to run `nomad operator raft {info,logs}` on an
inuse raft.db would cause the command to block until the agent using
raft.db is closed.

After this change the command will block for 1s before returning a
(hopefully) helpful error message.

This change also sets the ReadOnly mode on the underlying BoltDb to
ensure diagnostics make no changes to the underlying store. We have no
evidence this has ever occurred, but it seems like a useful safety
measure.

No changelog added since this is a minor tweak in a "new" feature (it
was hidden in previous relases).
2021-12-16 11:41:01 -08:00
..
args
boltdd
codec
constraints/semver chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
discover chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
envoy
escapingio
exptime
fields
flags
flatmap
freeport gofmt all the files 2021-10-01 10:14:28 -04:00
gated-writer
grpc-middleware/logging
logging
mount gofmt all the files 2021-10-01 10:14:28 -04:00
noxssrw lint: mark false positive or fix gocritic append lint errors. 2021-09-06 10:49:44 +02:00
pluginutils gofmt all the files 2021-10-01 10:14:28 -04:00
pool pool: track usage of incoming streams (#10710) 2021-06-07 10:22:37 -04:00
raftutil cli: return error from raft commands if db is open 2021-12-16 11:41:01 -08:00
snapshot Raft Debugging Improvements (#11414) 2021-11-04 10:16:12 -04:00
stats chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
testlog
testtask gofmt all the files 2021-10-01 10:14:28 -04:00
tlsutil Merge pull request #11089 from hashicorp/b-cve-2021-37218 2021-10-05 08:49:21 -04:00
useragent
uuid
winsvc gofmt all the files 2021-10-01 10:14:28 -04:00
funcs.go debug: Improve namespace and region support (#11269) 2021-10-12 16:58:41 -04:00
funcs_test.go debug: Improve namespace and region support (#11269) 2021-10-12 16:58:41 -04:00