Commit 08ffd5d
committed
changefeedccl: deflake TestChangefeedSchemaTTL
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: cockroachdb#149167
Release note: None1 parent 9e8fbe3 commit 08ffd5d
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6545 | 6545 | | |
6546 | 6546 | | |
6547 | 6547 | | |
| 6548 | + | |
6548 | 6549 | | |
6549 | 6550 | | |
6550 | 6551 | | |
| |||
6575 | 6576 | | |
6576 | 6577 | | |
6577 | 6578 | | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
| 6585 | + | |
| 6586 | + | |
| 6587 | + | |
6578 | 6588 | | |
6579 | 6589 | | |
6580 | 6590 | | |
| |||
0 commit comments