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 address review comments 2018-10-30 13:58:52 -04:00
boltdd Implement 'batch mode' for persisting allocations on the client. (#9093) 2020-10-20 16:15:37 -04:00
codec Pull inmem codec to helper 2018-02-15 13:59:00 -08:00
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 consul/connect: add support for connect mesh gateways 2021-06-04 08:24:49 -05:00
escapingio Fixup uses of `sanity` (#10187) 2021-03-16 18:05:08 -04:00
exptime connect: use exp backoff when waiting on consul envoy bootstrap 2021-04-27 09:21:50 -06:00
fields goimports 2019-01-22 15:44:31 -08:00
flags command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
flatmap Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
freeport gofmt all the files 2021-10-01 10:14:28 -04:00
gated-writer gatedwriter: Fix race condition (#9791) 2021-01-14 12:43:14 -08:00
grpc-middleware/logging Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
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 tests: prefix agent logs to identify agent sources 2020-06-07 16:38:11 -04:00
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 Set user-agent when talking to GCE metadata 2018-04-10 10:36:46 -04:00
uuid e2e: add e2e test for service registration 2021-01-05 08:48:12 -06:00
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