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(plugin/marathon): avoid panic on timeout #4915

Merged
merged 1 commit into from
Jan 24, 2020
Merged

Conversation

yesnault
Copy link
Member

Timeout is checked by WaitOnDeployment

this will avoid a panic like that:

[INFO] Stopping plugin...Error on deployment xxxxx-xxxxx-xxxxx-xxxxx: the operation has timed out
[INFO] panic: send on closed channel
[INFO]
[INFO] goroutine 50 [running]:
[INFO] main.(*marathonActionPlugin).Run.func2(0x78, 0xc4202da050, 0xc420370230, 0xc420373a20, 0xb68620, 0xc4202f80f0, 0xc4202bcc60, 0x24)
[INFO] /go/src/github.com/ovh/cds/contrib/grpcplugins/action/marathon/main.go:213 +0x1f2
[INFO] created by main.(*marathonActionPlugin).Run
[INFO] /go/src/github.com/ovh/cds/contrib/grpcplugins/action/marathon/main.go:202 +0x1159

Signed-off-by: Yvonnick Esnault yvonnick.esnault@corp.ovh.com

Timeout is checked by WaitOnDeployment

this will avoid a panic like that:

[INFO] Stopping plugin...Error on deployment xxxxx-xxxxx-xxxxx-xxxxx: the operation has timed out
[INFO] panic: send on closed channel
[INFO]
[INFO] goroutine 50 [running]:
[INFO] main.(*marathonActionPlugin).Run.func2(0x78, 0xc4202da050, 0xc420370230, 0xc420373a20, 0xb68620, 0xc4202f80f0, 0xc4202bcc60, 0x24)
[INFO] /go/src/github.com/ovh/cds/contrib/grpcplugins/action/marathon/main.go:213 +0x1f2
[INFO] created by main.(*marathonActionPlugin).Run
[INFO] /go/src/github.com/ovh/cds/contrib/grpcplugins/action/marathon/main.go:202 +0x1159

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
@sguiheux sguiheux merged commit e8e83ef into master Jan 24, 2020
@richardlt richardlt deleted the ye-fix-panic-marathon branch February 18, 2020 08:25
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

4 participants