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

Fix nil pointer dereference panics in mlserver #3047

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

ivan-valkov
Copy link
Contributor

Fixes #2904

The panics in #2904 are caused by nil pointer dereference of *machinelearningv1.PredictiveUnit in getMLServerImage. I found this out by running the tests with -count=20 to trigger the flakiness and followed the logs. In general we should be checking for nil pointer dereference issues before using a pointer that can be nil - this is a panic waiting to happen :D There are linters that can check for this - I will look into adding some to the repo.

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign ivan-valkov
You can assign the PR to them by writing /assign @ivan-valkov in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ukclivecox ukclivecox merged commit ff0e708 into SeldonIO:master Mar 11, 2021
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.

Flaky Operator Unit Test: MLServer Panic
3 participants