Commit 13e1c86
154879: changefeedccl: deflake TestChangefeedSchemaTTL r=fqazi a=fqazi
Previously, TestChangefeedSchemaTTL started flaking when create_table_with_schema_locked was enabled by default in the test suite. This happened because schema_locked tables can cause historical versions of descriptors to be cached in the lease manager, as the changefeed logic intentionally queries prior versions. As a result, even after the test garbage-collected the descriptors table, these old versions could remain in the in-memory cache, leading to flakes. To address this, this patch adds a canary schema change, which bumps the descriptor's version. When a descriptor's version is bumped, all older cached versions are purged.
Fixes: #149167
Informs: #153138
Informs: #154229
Informs: #154304
Informs: #154931
Release note: None
155775: mixedversion: fix panic in refresh{Cluster,Binary}Version r=golgeek a=DarrylWong
A recent change #155713 fixed the indexing when nodes were unavailable. However, this change did not account for multi cluster tests where the roachprod node ID is not the same as the CRDB node ID, i.e. we can't assume the 4th VM is the same as the 4th node in the cluster.
Fixes: none
Epic: none
Release note: none
155794: logictest: finalize upgrade explicitly in mixed_version_upgrade_preserve_ttl r=rafiss a=rafiss
Replace retry-based waiting with explicit version finalization using SET CLUSTER SETTING version = crdb_internal.node_executable_version().
Resolves: #155429
Epic: None
Release note: None
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Faizan Qazi <faizan@cockroachlabs.com>
Co-authored-by: DarrylWong <darryl@cockroachlabs.com>
Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
File tree
4 files changed
+50
-8
lines changed- pkg
- ccl/changefeedccl
- cmd/roachtest
- option
- roachtestutil/mixedversion
- sql/logictest/testdata/logic_test
4 files changed
+50
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7044 | 7044 | | |
7045 | 7045 | | |
7046 | 7046 | | |
| 7047 | + | |
7047 | 7048 | | |
7048 | 7049 | | |
7049 | 7050 | | |
| |||
7074 | 7075 | | |
7075 | 7076 | | |
7076 | 7077 | | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
| 7083 | + | |
| 7084 | + | |
| 7085 | + | |
| 7086 | + | |
7077 | 7087 | | |
7078 | 7088 | | |
7079 | 7089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
529 | 536 | | |
530 | 537 | | |
531 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
535 | 545 | | |
536 | 546 | | |
537 | | - | |
| 547 | + | |
538 | 548 | | |
539 | 549 | | |
540 | 550 | | |
| |||
556 | 566 | | |
557 | 567 | | |
558 | 568 | | |
559 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
560 | 577 | | |
561 | 578 | | |
562 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
563 | 584 | | |
564 | 585 | | |
565 | 586 | | |
566 | 587 | | |
567 | 588 | | |
568 | 589 | | |
569 | | - | |
| 590 | + | |
570 | 591 | | |
571 | 592 | | |
572 | 593 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments