[17.06] revert 0797241 and 5582db0#2556
Conversation
|
we'll also need to revert #2476 |
|
I've restarted the CI just to be double sure. |
| // this branch bounds the largest state achievable in the agent as SHUTDOWN, which | ||
| // is exactly the correct behavior for the agent. | ||
| if task.DesiredState >= api.TaskStateShutdown { | ||
| if task.DesiredState == api.TaskStateShutdown { |
There was a problem hiding this comment.
I wonder if this should be reverted or not, because making it >= is a bug fix that should have been in SwarmKit anyway. WDYT @anshulpundir?
There was a problem hiding this comment.
@andrewhsu can you make sure we're not reverting this line then?
nishanttotla
left a comment
There was a problem hiding this comment.
Overall changes LGTM. I'm reviewing the task reaper code once again to make sure it is correctly reverted back to the old state.
|
Ok test failure is a data race pointed out by the CI, but I don't see it as being related. @anshulpundir what is your opinion? |
| // Stop stops the TaskReaper and waits for the main loop to exit. | ||
| func (tr *TaskReaper) Stop() { | ||
| tr.cancelWatch() | ||
| // TODO(dperny) calling stop on the task reaper twice will cause a panic |
There was a problem hiding this comment.
Not that it matters (this is just a comment), but the cherry pick commit doesn't modify this comment: 5582db0
Let's keep consistency so that things don't bother us later. (@andrewhsu)
There was a problem hiding this comment.
Ah okay, then ignore my comment.
|
@anshulpundir looks like a backport of #2476 never made it to the |
nishanttotla
left a comment
There was a problem hiding this comment.
LGTM.
The test failure looks unrelated, but we can investigate that as testing is being done.
|
Data race looks unrelated @nishanttotla |
|
here's the commit likely leading to the data race detected in the CI run 700b319 @andrewhsu some of the code line numbers didn't make sense in the previous data race detection, so I'll wait to see if we hit it again before I analyze it further. |
Codecov Report
@@ Coverage Diff @@
## bump_v17.06 #2556 +/- ##
===============================================
- Coverage 61.66% 61.11% -0.55%
===============================================
Files 42 120 +78
Lines 5692 20011 +14319
===============================================
+ Hits 3510 12230 +8720
- Misses 1841 6434 +4593
- Partials 341 1347 +1006 |
Reverted 0797241 and 5582db0 from PR:
no conflicts