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 panic in service mirror controller #12406

Merged
merged 3 commits into from Apr 10, 2024
Merged

fix panic in service mirror controller #12406

merged 3 commits into from Apr 10, 2024

Conversation

adleong
Copy link
Member

@adleong adleong commented Apr 8, 2024

If the service mirror controller encounters an error listing mirror services during endpoints repair, this error is logged but processing continues. This causes a nil pointer dereference which results in a panic.

Instead, we abort the endpoints repair with a retryable error so that the repair endpoints event is re-enqueued and the panic is avoided.

Signed-off-by: Alex Leong <alex@buoyant.io>
@adleong adleong requested a review from a team as a code owner April 8, 2024 18:56
@adleong adleong merged commit 1959a1d into main Apr 10, 2024
37 checks passed
@adleong adleong deleted the alex/mirror-panic branch April 10, 2024 16:21
the-wondersmith pushed a commit to the-wondersmith/linkerd2 that referenced this pull request Apr 24, 2024
If the service mirror controller encounters an error listing mirror services during endpoints repair, this error is logged but processing continues.  This causes a nil pointer dereference which results in a panic.

Instead, we abort the endpoints repair with a retryable error so that the repair endpoints event is re-enqueued and the panic is avoided.

Signed-off-by: Alex Leong <alex@buoyant.io>
Signed-off-by: Mark S <the@wondersmith.dev>
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.

None yet

2 participants