Skip to content

Fix potential panic in stern.Run()#267

Merged
superbrothers merged 1 commit intostern:masterfrom
zlabjp:fix-panic-stern-run
May 9, 2023
Merged

Fix potential panic in stern.Run()#267
superbrothers merged 1 commit intostern:masterfrom
zlabjp:fix-panic-stern-run

Conversation

@tksm
Copy link
Contributor

@tksm tksm commented May 8, 2023

This PR fixes a potential panic in the stern.Run() by replacing an error channel with errgroup. As pointed out in issue #265, errCh was closed without waiting for the goroutine to finish, so it might cause panic (send on closed channel).

@superbrothers superbrothers merged commit dcba2dd into stern:master May 9, 2023
@tksm tksm deleted the fix-panic-stern-run branch May 9, 2023 09:47
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.

2 participants