Commit 2a6a541
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: #149167
Release note: None1 parent 7635297 commit 2a6a541
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7043 | 7043 | | |
7044 | 7044 | | |
7045 | 7045 | | |
| 7046 | + | |
7046 | 7047 | | |
7047 | 7048 | | |
7048 | 7049 | | |
| |||
7073 | 7074 | | |
7074 | 7075 | | |
7075 | 7076 | | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
| 7083 | + | |
| 7084 | + | |
| 7085 | + | |
7076 | 7086 | | |
7077 | 7087 | | |
7078 | 7088 | | |
| |||
0 commit comments