Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
85599: ui: add MVCC range stats to Db Console r=koorosh a=koorosh This patch extends node details with `rangeKeyBytes` and `rangeValueBytes` stats. Also, it adds the same stats to Advanced Debug > Range Status section. Release note (ui change): Added "Range Key Bytes" and "Range Value Bytes" stats on Node details page. 85621: sql: fix recent race on using a random source r=yuzefovich a=yuzefovich In 9eb5ac3 we introduced a single random source to the DistSQLPlanner that is used by the PartitionSpans logic in the multi-tenant setting. However, we missed the fact that that method can be called concurrently from multiple goroutines which can lead to a race on the random source. Prior to that commit we were using a single global random source, so there was a desire to reduce contention on that. This commit achieves that desire but also fixes the data race by instantiating a new random source whenever we're creating a "resolver" function where the source is used. Fixes: #85508. Release note: None 85622: sql: release leases before running migrations r=ajwerner a=ajwerner We fortunately prevent setting cluster settings in a transaction. That means that we have full control over the access to tables that run during the transaction which runs a cluster version upgrade. One observation is that upgrades can take a long time if we leak leases in some way. In #85391 we add function resolution which results in decriptors now being leased when you run the following statement because we need to resolve the function: `SET CLUSTER SETTING version = crdb_internal.node_executable_version()` Then the test ends up taking 5 minutes +/- 15% for the leases to expire. The downside here is that you don't get a transactional view of UDFs used in expressions inside `SET CLUSTER VERSION`. That seems fine to me. Release note: None 85625: bazel: move `bazel run :gazelle` before `generate-logictest` r=dt a=rickystewart `gazelle` populates the `BUILD.bazel` files for the `staticcheck` analyzers, so we want those populated before `generate-logictest`. Release note: None Co-authored-by: Andrii Vorobiov <and.vorobiov@gmail.com> Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com> Co-authored-by: Andrew Werner <awerner32@gmail.com> Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
- Loading branch information