Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
131445: raft: forbid direct voter removal without demotion r=nvanbenschoten a=nvanbenschoten Informs cockroachdb#129796. Informs cockroachdb#125355. This commit is a natural continuation of 7f37eaa (from 5 years ago). The commit made it so that the replicateQueue would never issue a ChangeReplicas request that removed a voter replica. Instead, the replicate queue would always demote the voter replica to a learner replica first. This commit makes it so that raft will no longer allow direct voter removal in a proposed configuration change. Instead, it requires the voter (who may be the leader) to first be demoted to a learner. This prevents abuse and strengthens the guarantee that we will never perform such unsafe configuration changes. Release note: None 132349: server: Fix NPE in spanStatsFanOut r=kyle-a-wong a=kyle-a-wong a NPE was surfaced when doing a spanstats request on an unfinalized (mixed version) cluster. To fix, defensive checks are added to defend against potential nil responses and references to non-existant map entries for a request span stat Fixes: cockroachdb#132130 Release note (bug fix): Fixes a bug where a span stats request on a mixed version cluster resulted in an NPE 132574: tablemetadatacache: fix TestTableMetadataUpdateJobProgressAndMetrics r=kyle-a-wong a=kyle-a-wong This test has a high degree of variability in run time, likely due to the generation for so many tables. To fix, new tables are no longer generated in the test. Instead, the batch size for the table metadata update job has is lowered to effectively trigger the same behavior Epic: [CRDB-37558](https://cockroachlabs.atlassian.net/browse/CRDB-37558) Release note: None Co-authored-by: Nathan VanBenschoten <[email protected]> Co-authored-by: Kyle Wong <[email protected]>
- Loading branch information