Skip to content

Conversation

@fqazi
Copy link
Collaborator

@fqazi fqazi commented Dec 23, 2025

Previously, when a schema change was execute with a statement_timeout, we would enforce any statement timeouts on the job waits. However, there was also additional logic to wait for descriptors, that could apply afterwards. This patch, ensures that any extra logic complies with the statement_timeout, which will generate a similar query timeout error.

Fixes: #158272

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, when a schema change was execute with a statement_timeout,
we would enforce any statement timeouts on the job waits. However, there
was also additional logic to wait for descriptors, that could apply
afterwards. This patch, ensures that any extra logic complies with the
statement_timeout, which will generate a similar query timeout error.

Fixes: cockroachdb#158272

Release note: None
@fqazi fqazi force-pushed the fixStatementTimeoutForWait branch from aeb79b8 to 20cddef Compare December 23, 2025 19:11
@fqazi fqazi marked this pull request as ready for review December 23, 2025 19:11
@fqazi fqazi requested a review from a team as a code owner December 23, 2025 19:11
@fqazi fqazi requested a review from rafiss January 26, 2026 17:03
@fqazi
Copy link
Collaborator Author

fqazi commented Jan 26, 2026

@rafiss Can you take a look at this?

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.

sql: ALTER TYPE ... DROP VALUE doesn't respect statement timeout

2 participants