Skip to content

Conversation

@runcom
Copy link
Contributor

@runcom runcom commented Jun 5, 2017

This patch handles case c) in moby/moby#31487

(c) A request cannot be added to 's.tasks' because the queue is full.

case b) isn't fixable at this point case there's no way to cancel stuff
from a channel since channels aren't context aware (yet?).
Parallelizing tasks handling isn't easily doable either.

Signed-off-by: Antonio Murdaca [email protected]

@mlaventure @crosbymichael PTAL

@runcom runcom force-pushed the respect-ctx-timeout-sendtask branch 2 times, most recently from 2eeb892 to 6346e20 Compare June 5, 2017 16:21
Copy link
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with 1 nit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: return not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@runcom runcom force-pushed the respect-ctx-timeout-sendtask branch 6 times, most recently from b5cb95b to 8c13151 Compare June 5, 2017 17:22
This patch handles case c) in moby/moby#31487

(c) A request cannot be added to 's.tasks' because the queue is full.

case b) isn't fixable at this point case there's no way to cancel stuff
from a channel since channels aren't context aware (yet?).
Parallelizing tasks handling isn't easily doable either.

Signed-off-by: Antonio Murdaca <[email protected]>
@runcom runcom force-pushed the respect-ctx-timeout-sendtask branch from 8c13151 to b812857 Compare June 5, 2017 17:27
Copy link
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit 34fc75f into containerd:v0.2.x Jun 5, 2017
@runcom runcom deleted the respect-ctx-timeout-sendtask branch June 5, 2017 18:05
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.

3 participants