[17.12] Fix task reaper not cleaning up COMPLETE tasks#2477
Merged
stevvooe merged 1 commit intoDec 19, 2017
Conversation
Tasks in the complete state were not cleaned up because the task reaper was only looking at task.Status.State >= api.TaskStateShutdown, but the COMPLETE state (api.TaskStateCompleted) is the actual "first" terminal state. Added a test for the initialization stage of the task repear. This runs the logic of which tasks to clean up through its paces, but doesn't test the run-time logic of the task reaper (it's ability to respond to updates to tasks). Signed-off-by: Drew Erny <drew.erny@docker.com> (cherry picked from commit e5b3107) Signed-off-by: Eli Uriegas <seemethere101@gmail.com>
Author
|
ping @stevvooe @anshulpundir |
Codecov Report
@@ Coverage Diff @@
## bump_v17.12 #2477 +/- ##
===============================================
- Coverage 61.71% 61.63% -0.08%
===============================================
Files 128 129 +1
Lines 21109 21232 +123
===============================================
+ Hits 13028 13087 +59
- Misses 6676 6736 +60
- Partials 1405 1409 +4 |
Contributor
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tasks in the complete state were not cleaned up because the task reaper
was only looking at task.Status.State >= api.TaskStateShutdown, but the
COMPLETE state (api.TaskStateCompleted) is the actual "first" terminal
state.
Added a test for the initialization stage of the task repear. This runs
the logic of which tasks to clean up through its paces, but doesn't test
the run-time logic of the task reaper (it's ability to respond to
updates to tasks).
Cherry-pick of #2473
Cherry pick does apply cleanly
Signed-off-by: Drew Erny drew.erny@docker.com
(cherry picked from commit e5b3107)
Signed-off-by: Eli Uriegas seemethere101@gmail.com