Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: Valid IDs in INSPECT SHARD #31180

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

jkosh44
Copy link
Contributor

@jkosh44 jkosh44 commented Jan 24, 2025

Previously, INSPECT SHARD would panic if it was given an ID that didn't belong to any item. This commit fixes the issue by returning an error instead.

Fixes #MaterializeInc/database-issues/issues/8910

Motivation

This PR fixes a recognized bug.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

Previously, INSPECT SHARD would panic if it was given an ID that didn't
belong to any item. This commit fixes the issue by returning an error
instead.

Fixes #MaterializeInc/database-issues/issues/8910
@jkosh44 jkosh44 requested a review from a team as a code owner January 24, 2025 15:00
@jkosh44 jkosh44 requested a review from ParkMyCar January 24, 2025 15:00
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This doesn't look like the right file to test this in, but I didn't see any other tests.

@jkosh44 jkosh44 merged commit 82b360d into MaterializeInc:main Jan 24, 2025
79 checks passed
@jkosh44 jkosh44 deleted the inspect-shard-panic branch January 24, 2025 16:49
antiguru pushed a commit to antiguru/materialize that referenced this pull request Jan 24, 2025
Previously, INSPECT SHARD would panic if it was given an ID that didn't
belong to any item. This commit fixes the issue by returning an error
instead.

Fixes #MaterializeInc/database-issues/issues/8910
@doy-materialize doy-materialize added the lts-backport-v25.1 Needs to be backported into the v25.1 LTS release label Jan 27, 2025
def- pushed a commit that referenced this pull request Jan 31, 2025
Previously, INSPECT SHARD would panic if it was given an ID that didn't
belong to any item. This commit fixes the issue by returning an error
instead.

Fixes #MaterializeInc/database-issues/issues/8910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lts-backport-v25.1 Needs to be backported into the v25.1 LTS release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants