Skip to content

[17.12] Fix task reaper not cleaning up COMPLETE tasks#2477

Merged
stevvooe merged 1 commit into
moby:bump_v17.12from
seemethere:bump_v17.12-cherry-pick-2473
Dec 19, 2017
Merged

[17.12] Fix task reaper not cleaning up COMPLETE tasks#2477
stevvooe merged 1 commit into
moby:bump_v17.12from
seemethere:bump_v17.12-cherry-pick-2473

Conversation

@seemethere
Copy link
Copy Markdown

@seemethere seemethere commented Dec 19, 2017

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

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>
@seemethere
Copy link
Copy Markdown
Author

ping @stevvooe @anshulpundir

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 19, 2017

Codecov Report

Merging #2477 into bump_v17.12 will decrease coverage by 0.07%.
The diff coverage is 50%.

@@               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

@stevvooe
Copy link
Copy Markdown
Contributor

LGTM

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