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

scheduler: Properly handle dead tasks when populating data structures #1299

Merged
merged 1 commit into from Aug 4, 2016

Conversation

aaronlehmann
Copy link
Collaborator

@aaronlehmann aaronlehmann commented Aug 2, 2016

The logic in setupTasksList was incorrect. It treated dead tasks as if
they were running. We didn't catch this because this function only runs
on leader failover.

Corrected the function and added a test.

Fixes #1296

cc @thaJeztah @LK4D4 @dongluochen

The logic in setupTasksList was incorrect. It treated dead tasks as if
they were running. We didn't catch this because this function only runs
on leader failover.

Corrected the function and added a test.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@codecov-io
Copy link

codecov-io commented Aug 2, 2016

Current coverage is 54.85% (diff: 100%)

Merging #1299 into master will decrease coverage by 0.18%

@@             master      #1299   diff @@
==========================================
  Files            78         78          
  Lines         12468      12467     -1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6863       6839    -24   
- Misses         4661       4677    +16   
- Partials        944        951     +7   

Sunburst

Powered by Codecov. Last update 7f29213...3dd8dac

@thaJeztah
Copy link
Member

nice find! SGTM

@dongluochen
Copy link
Contributor

LGTM

@aaronlehmann aaronlehmann merged commit a210cdd into moby:master Aug 4, 2016
@aaronlehmann aaronlehmann deleted the scheduler-dead-tasks branch August 4, 2016 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants