Skip to content

Commit 4e8c6d2

Browse files
rafissclaude
andcommitted
logictest: finalize upgrade explicitly in mixed_version_upgrade_preserve_ttl
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: Claude <noreply@anthropic.com>
1 parent 76bb21a commit 4e8c6d2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/sql/logictest/testdata/logic_test/mixed_version_upgrade_preserve_ttl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ CREATE TABLE tbl (
1313

1414
upgrade all
1515

16-
# Verify that the cluster version upgrades have begun by asserting we're no
17-
# longer on the previous version. Note that the first cluster upgrade is the
18-
# one that repairs all descriptors.
19-
query B retry retry_duration 90s
16+
statement ok
17+
SET CLUSTER SETTING version = crdb_internal.node_executable_version()
18+
19+
# Verify that the cluster version has been upgraded and is no longer on the
20+
# previous version.
21+
query B
2022
SELECT version != '$initial_version' FROM [SHOW CLUSTER SETTING version]
2123
----
2224
true

0 commit comments

Comments
 (0)