Skip to content

workload/schemachanger: fix potential error for DETACHED flag in inspect#158875

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
fqazi:detachFixProper
Dec 5, 2025
Merged

workload/schemachanger: fix potential error for DETACHED flag in inspect#158875
craig[bot] merged 1 commit intocockroachdb:masterfrom
fqazi:detachFixProper

Conversation

@fqazi
Copy link
Copy Markdown
Collaborator

@fqazi fqazi commented Dec 5, 2025

Previously, this was incorrectly expecting the pgcode FeatureNotSuported, when it should have been SyntaaxError.

Fixes: #158837
Release note: None

@fqazi fqazi requested a review from a team December 5, 2025 15:51
@fqazi fqazi requested a review from a team as a code owner December 5, 2025 15:51
@fqazi fqazi requested review from herkolategan and srosenberg and removed request for a team December 5, 2025 15:51
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! i actually think we need to add both error codes.

  • SyntaxError happens if the command is sent to an old binary.
  • FeatureNotSupported happens if the command is sent to a new binary, before the version upgrade has been finalized

Previously, this was incorrectly expecting the pgcode FeatureNotSuported, when it
should have been SyntaaxError.

Fixes: cockroachdb#158837

Release note: None
@fqazi
Copy link
Copy Markdown
Collaborator Author

fqazi commented Dec 5, 2025

thanks! i actually think we need to add both error codes.

  • SyntaxError happens if the command is sent to an old binary.
  • FeatureNotSupported happens if the command is sent to a new binary, before the version upgrade has been finalized

Added both. TFTR!

@fqazi
Copy link
Copy Markdown
Collaborator Author

fqazi commented Dec 5, 2025

@rafiss TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 5, 2025

@craig craig bot merged commit 104fc0b into cockroachdb:master Dec 5, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roachtest: schemachange/mixed-versions failed [INSPECT with detached]

3 participants