Commit f625fe5
155399: roachtest: route more schema change workload flakes to foundations r=kev-cao a=msbutler
It appears that errors prefaced with "UNEXPECTED COMMIT ERRORS" also signal a workload flake.
Informs #155141
Release note: none
155454: sql: optimizer scan misestimate logging improvements r=Uzair5162 a=Uzair5162
This commit is a follow-up to #154370. It changes misestimate logging to use structured logging on the `SQL_EXEC` log channel with a new `ScanRowCountMisestimate` event, instead of unstructured logs on DEV. It also adds an error case to `stats.EstimateStaleness()` when there are 1 or fewer full automatic stats collections, and uses the fully qualified table name in logs.
Part of: #153748, #153873
Release note: Changes scan misestimate logging gated behind `sql.log.scan_row_count_misestimate.enabled` to use structured logging including the table and index being scanned, the estimated and actual row counts, the time since the last table stats collection, and the table's estimated staleness.
Co-authored-by: Michael Butler <butler@cockroachlabs.com>
Co-authored-by: Uzair Ahmad <uzair.ahmad@cockroachlabs.com>
File tree
8 files changed
+189
-19
lines changed- docs/generated
- pkg
- cmd/roachtest/tests
- sql
- stats
- util/log/eventpb
8 files changed
+189
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2906 | 2906 | | |
2907 | 2907 | | |
2908 | 2908 | | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
2909 | 2940 | | |
2910 | 2941 | | |
2911 | 2942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
1362 | 1361 | | |
1363 | 1362 | | |
1364 | 1363 | | |
1365 | 1364 | | |
1366 | 1365 | | |
1367 | 1366 | | |
1368 | 1367 | | |
1369 | | - | |
1370 | | - | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1371 | 1382 | | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
1378 | 1389 | | |
1379 | 1390 | | |
1380 | | - | |
1381 | | - | |
| 1391 | + | |
| 1392 | + | |
1382 | 1393 | | |
1383 | 1394 | | |
1384 | 1395 | | |
| |||
1844 | 1855 | | |
1845 | 1856 | | |
1846 | 1857 | | |
1847 | | - | |
1848 | 1858 | | |
1849 | 1859 | | |
1850 | 1860 | | |
| |||
1883 | 1893 | | |
1884 | 1894 | | |
1885 | 1895 | | |
1886 | | - | |
| 1896 | + | |
1887 | 1897 | | |
1888 | 1898 | | |
1889 | 1899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
939 | 942 | | |
940 | 943 | | |
941 | 944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
1146 | 1147 | | |
1147 | 1148 | | |
1148 | 1149 | | |
1149 | | - | |
| 1150 | + | |
1150 | 1151 | | |
1151 | 1152 | | |
1152 | 1153 | | |
| |||
1157 | 1158 | | |
1158 | 1159 | | |
1159 | 1160 | | |
1160 | | - | |
| 1161 | + | |
1161 | 1162 | | |
1162 | 1163 | | |
1163 | 1164 | | |
| |||
1190 | 1191 | | |
1191 | 1192 | | |
1192 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1193 | 1216 | | |
1194 | 1217 | | |
1195 | 1218 | | |
1196 | 1219 | | |
| 1220 | + | |
1197 | 1221 | | |
1198 | 1222 | | |
1199 | 1223 | | |
| |||
1223 | 1247 | | |
1224 | 1248 | | |
1225 | 1249 | | |
| 1250 | + | |
1226 | 1251 | | |
1227 | 1252 | | |
1228 | 1253 | | |
| |||
1239 | 1264 | | |
1240 | 1265 | | |
1241 | 1266 | | |
| 1267 | + | |
1242 | 1268 | | |
1243 | 1269 | | |
1244 | 1270 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
640 | 668 | | |
641 | 669 | | |
642 | 670 | | |
| |||
0 commit comments