etcd/raft/testdata
Nathan VanBenschoten e51c697ec6 raft: disable XXX_NoUnkeyedLiteral, XXX_unrecognized, and XXX_sizecache fields in protos
This commit removes the `XXX_NoUnkeyedLiteral`, `XXX_unrecognized`, and
`XXX_sizecache` auto-generated fields from generated protobuf structs in
the raft package. This was done for all of the same reasons CockroachDB
removed the generation of these fields in https://github.com/cockroachdb/cockroach/pull/38404.
They come with very limited advantages but moderate disadvantages.

`XXX_NoUnkeyedLiteral` and `XXX_sizecache` were only enabled recently in
cc7b4fa, and this appears to have been unintentional. Meanwhile,
`XXX_unrecognized` has been around for longer and has arguably more
reason to stay because it can assist with forwards compatibility.
However, any real mixed-version upgrade story for this package is mostly
untold at this point, and keeping this field seems just as likely to
cause unexpected bugs (e.g. a field was propagated but not updated
correctly when passed through an old version) as it seems to fix real
issues, so it also doesn't warrant its cost.

This reduces the in-memory representation size of all Raft protos.
Notably, it reduces the memory size of an `Entry` proto from *80 bytes*
to *48 bytes* and the memory size of a `Message` proto from *392 bytes*
to *264 bytes*. Both of these structs are used frequently, and often in
slices, where this wasted space really starts to add up.

This was motivated by a regression in microbenchmarks in CockroachDB due
to cc7b4fa, which was caught in https://github.com/cockroachdb/cockroach/issues/62212.
2021-03-20 03:24:18 -04:00
..
campaign.txt raft: add a batch of interaction-driven conf change tests 2019-08-16 09:38:44 +02:00
campaign_learner_must_vote.txt Clarify documentation of probing 2021-02-15 09:47:18 +01:00
confchange_v1_add_single.txt Clarify documentation of probing 2021-02-15 09:47:18 +01:00
confchange_v1_remove_leader.txt rafttest: print Ready before processing it 2019-08-16 09:41:35 +02:00
confchange_v2_add_double_auto.txt Clarify documentation of probing 2021-02-15 09:47:18 +01:00
confchange_v2_add_double_implicit.txt Clarify documentation of probing 2021-02-15 09:47:18 +01:00
confchange_v2_add_single_auto.txt Clarify documentation of probing 2021-02-15 09:47:18 +01:00
confchange_v2_add_single_explicit.txt raft: disable XXX_NoUnkeyedLiteral, XXX_unrecognized, and XXX_sizecache fields in protos 2021-03-20 03:24:18 -04:00
probe_and_replicate.txt raft: implement fast log rejection 2021-02-10 15:48:32 -05:00
snapshot_succeed_via_app_resp.txt raft: add a batch of interaction-driven conf change tests 2019-08-16 09:38:44 +02:00