Skip to content

fix(adapter): preserve workload_class during zero-downtime cluster alter#36440

Draft
jubrad wants to merge 1 commit intoMaterializeInc:mainfrom
jubrad:justin/sql-211-alter-cluster-set-size-workload-class-with-wait-for-until
Draft

fix(adapter): preserve workload_class during zero-downtime cluster alter#36440
jubrad wants to merge 1 commit intoMaterializeInc:mainfrom
jubrad:justin/sql-211-alter-cluster-set-size-workload-class-with-wait-for-until

Conversation

@jubrad
Copy link
Copy Markdown
Contributor

@jubrad jubrad commented May 7, 2026

Summary

  • ALTER CLUSTER ... SET (SIZE, WORKLOAD CLASS) WITH (WAIT FOR / UNTIL READY) was silently dropping the workload class change because the zero-downtime finalization code read workload_class from the catalog (old value) instead of the planned config.
  • Thread the new workload_class through AlterClusterWaitForHydrated and AlterClusterFinalize so finalize_alter_cluster_stage uses the planned value.
  • Add regression test covering both WAIT FOR and WAIT UNTIL READY paths.

Fixes SQL-211.

Test plan

  • bin/sqllogictest test/sqllogictest/managed_cluster.slt passes with the new regression test
  • Existing managed cluster tests continue to pass

🤖 Generated with Claude Code

…ter finalization

The zero-downtime finalization path for ALTER CLUSTER ... WITH (WAIT
FOR / UNTIL READY) was reading workload_class from the catalog (the old
value) instead of the planned config, silently dropping any
workload_class change included in the ALTER statement.

Thread the new workload_class through AlterClusterWaitForHydrated and
AlterClusterFinalize so finalize_alter_cluster_stage uses the planned
value.

Fixes SQL-211.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jubrad jubrad force-pushed the justin/sql-211-alter-cluster-set-size-workload-class-with-wait-for-until branch from 9e7195c to d2c1bff Compare May 7, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant