open-nomad/helper
Michael Schurter 7494a0c4fd core: remove all traces of unused protocol version
Nomad inherited protocol version numbering configuration from Consul and
Serf, but unlike those projects Nomad has never used it. Nomad's
`protocol_version` has always been `1`.

While the code is effectively unused and therefore poses no runtime
risks to leave, I felt like removing it was best because:

1. Nomad's RPC subsystem has been able to evolve extensively without
   needing to increment the version number.
2. Nomad's HTTP API has evolved extensively without increment
   `API{Major,Minor}Version`. If we want to version the HTTP API in the
   future, I doubt this is the mechanism we would choose.
3. The presence of the `server.protocol_version` configuration
   parameter is confusing since `server.raft_protocol` *is* an important
   parameter for operators to consider. Even more confusing is that
   there is a distinct Serf protocol version which is included in `nomad
   server members` output under the heading `Protocol`. `raft_protocol`
   is the *only* protocol version relevant to Nomad developers and
   operators. The other protocol versions are either deadcode or have
   never changed (Serf).
4. If we were to need to version the RPC, HTTP API, or Serf protocols, I
   don't think these configuration parameters and variables are the best
   choice. If we come to that point we should choose a versioning scheme
   based on the use case and modern best practices -- not this 6+ year
   old dead code.
2022-02-18 16:12:36 -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
escapingfs client: check escaping of alloc dir using symlinks 2022-02-09 19:50:13 -05:00
escapingio Fixup uses of `sanity` (#10187) 2021-03-16 18:05:08 -04:00
fields goimports 2019-01-22 15:44:31 -08:00
flags fix integer bounds checks (#11815) 2022-01-25 11:16:48 -05: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 deps: upgrade docker and runc 2022-01-18 08:35:26 -06: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 core: remove all traces of unused protocol version 2022-02-18 16:12:36 -08:00
raftutil api: return sorted results in certain list endpoints 2022-02-15 13:48:28 -06: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 Merge pull request #11983 from hashicorp/b-select-after 2022-02-03 09:38:06 -06:00
funcs_test.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00