Commit 325aac0
154031: WORKSPACE: update pgo profile r=mgartner a=rail
Benchstat results:
```
│ benchstat_old.txt │ benchstat.txt │
│ queries/sec │ queries/sec vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 25.86k ± 3% 27.15k ± 1% +5.00% (p=0.000 n=20)
│ benchstat_old.txt │ benchstat.txt │
│ txns/sec │ txns/sec vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 1.293k ± 3% 1.358k ± 1% +5.00% (p=0.000 n=20)
│ benchstat_old.txt │ benchstat.txt │
│ ms/min │ ms/min vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 13.00 ± 4% 12.13 ± 5% -6.69% (p=0.000 n=20)
│ benchstat_old.txt │ benchstat.txt │
│ ms/avg │ ms/avg vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 49.50 ± 3% 47.14 ± 1% -4.77% (p=0.000 n=20)
│ benchstat_old.txt │ benchstat.txt │
│ ms/p95 │ ms/p95 vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 77.89 ± 3% 71.83 ± 2% -7.79% (p=0.000 n=20)
│ benchstat_old.txt │ benchstat.txt │
│ ms/max │ ms/max vs base │
Sysbench/a=oltp_read_write/nodes=3/cpu=8/conc=64 251.4 ± 6% 216.9 ± 12% ~ (p=0.086 n=20)
```
Fixes: REL-3226
Release note: None
154408: rangefeed: make TestUnrecoverableErrors work with multi-tenancy r=tbg a=arulajmani
This test wants to see errors because of strict GC enforcement policies. To do so, it creates a scratch range and tries to trigger an error there. Strict GC enforcement policies don't apply to the scratch range out of the box, so to sidestep this, the test would explicitly configure the scratch range's span config. This explicit configuration only worked for the system tenant previously; this patch extends it to secondary tenants.
Closes #109472
Release note: None
154495: sql: add guardrail for approximate max schema objects r=rafiss a=rafiss
This adds a new cluster setting `sql.schema.approx_max_object_count` that operators can use to limit the total number of schema objects (tables, databases, schemas, types, functions) in a cluster.
The implementation uses cached table statistics from TableStatisticsCache to count descriptors in system.descriptor, avoiding expensive `COUNT(*)` queries. If cached statistics are unavailable, object creation is allowed. The check is enforced in both the legacy and declarative schema changers.
fixes #148286
Release note (ops change): Added cluster setting
`sql.schema.approx_max_object_count` (default: 20,000) to prevent creation of new schema objects when the limit is exceeded. The check uses cached table statistics for performance and is approximate - it may not be immediately accurate until table statistics are updated by the background statistics refreshing job.
Clusters that have been running stably with a larger object count should raise the limit or disable the limit by setting the value to 0.
In future releases, the default value for this setting will be raised as more CockroachDB features support larger object counts.
154556: build: enable custom toolchain use in crlib r=RaduBerinde a=RaduBerinde
We set up a patch to enable the crdb-specific code in crlib/crsync. We
add a test in syncutil which verifies that the correct path is being
used.
Epic: none
Release note: None
Co-authored-by: Rail Aliiev <rail@iqchoice.com>
Co-authored-by: Arul Ajmani <arulajmani@gmail.com>
Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
File tree
30 files changed
+358
-14
lines changed- build
- bazelutil
- patches
- scripts
- docs/generated/settings
- pkg
- kv/kvclient/rangefeed
- spanconfig/spanconfigsqltranslator
- sql
- schemachanger
- scdeps
- sctestdeps
- scexec
- scjob
- schemaobjectlimit
- sqlclustersettings
- util/syncutil
30 files changed
+358
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
1753 | | - | |
1754 | | - | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1755 | 1759 | | |
1756 | | - | |
| 1760 | + | |
1757 | 1761 | | |
1758 | 1762 | | |
1759 | 1763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
645 | | - | |
| 644 | + | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
| 558 | + | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
| 2314 | + | |
2314 | 2315 | | |
2315 | 2316 | | |
2316 | 2317 | | |
| |||
0 commit comments