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
116726: logictest: fix rare flake r=yuzefovich a=yuzefovich This commit fixes a rare flake in `TestCCLLogic_crdb_internal` where the test ensures that a newly-created secondary tenant doesn't have a tenant capability by default, then grants that capability, and the in-memory cache is updated accordingly. The problem was that this test uses "can_admin_split" capability for the check, and the test was added before 879bd1c merged. That patch made it so that "can_admin_split" capability is granted by default, so it made the existing test racy - namely, the race is between the tenant capabilities watcher propagating the grant and the logic test framework querying the in-memory cache. The fix is simple - use a capability that is not granted by default ("can_view_node_info"). Fixes: cockroachdb#115028. Release note: None 116730: kvstreamer: avoid an allocation on the hot path r=yuzefovich a=yuzefovich This commit avoids an allocation in `logStatistics` call when we don't have verbose logging enabled (previously, we would always get an allocation in `humanizeutil.IBytes` call). Also this avoids a few atomic loads too. (Noticed this while looking at the CPU profile of one of the production clusters.) Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information