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

Handle unexpected response types in volume API #11196

Closed

Conversation

dannykopping
Copy link
Contributor

What this PR does / why we need it:
We're currently seeing panics in k174 due to nil responses being passed due to an unsuccessful type assertion which was not checked.

This PR moves the type assertion to where it's needed and handles it gracefully.

We don't yet know what response is being passed into the channel; this log line will help us identify it.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
There was also some variable shadowing in this code which could produce some interesting bugs, so I renamed the variables to avoid that.

Danny Kopping added 2 commits November 10, 2023 10:40
@dannykopping dannykopping marked this pull request as ready for review November 10, 2023 10:34
@dannykopping dannykopping requested a review from a team as a code owner November 10, 2023 10:34
@jeschkies jeschkies mentioned this pull request Nov 10, 2023
8 tasks
@dannykopping
Copy link
Contributor Author

Superseded by #11209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant