Skip to content

Update task status during a network allocation failure#2358

Closed
wsong wants to merge 1 commit into
moby:masterfrom
wsong:network_alloc_errors
Closed

Update task status during a network allocation failure#2358
wsong wants to merge 1 commit into
moby:masterfrom
wsong:network_alloc_errors

Conversation

@wsong
Copy link
Copy Markdown

@wsong wsong commented Aug 25, 2017

No description provided.

@GordonTheTurtle
Copy link
Copy Markdown

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "network_alloc_errors" git@github.com:wsong/swarmkit.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@wsong wsong force-pushed the network_alloc_errors branch from 339c497 to f3b1b8b Compare August 25, 2017 23:13
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 25, 2017

Codecov Report

Merging #2358 into master will decrease coverage by 0.15%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master    #2358      +/-   ##
==========================================
- Coverage    60.2%   60.04%   -0.16%     
==========================================
  Files         128      128              
  Lines       26191    26200       +9     
==========================================
- Hits        15768    15733      -35     
- Misses       9032     9073      +41     
- Partials     1391     1394       +3

Copy link
Copy Markdown
Collaborator

@aaronlehmann aaronlehmann left a comment

Choose a reason for hiding this comment

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

This change is related to #2287, and should probably be paired with that one.

"time"

"github.com/docker/go-events"
events "github.com/docker/go-events"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This change shouldn't be necessary.

quiet = true
}
allocatedTasks := make([]*api.Task, 0, len(toAllocate))
errorTasks := make([]*api.Task, 0, len(toAllocate))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where do tasks get added to this slice?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Whoops, forgot to update this code block. Fixed.

Signed-off-by: Wayne Song <wsong@docker.com>
@wsong wsong force-pushed the network_alloc_errors branch from f3b1b8b to df08abd Compare August 31, 2017 21:28
Copy link
Copy Markdown
Author

@wsong wsong left a comment

Choose a reason for hiding this comment

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

It looks like #2287 is sort of a superset of these changes. Should we carry that PR forward, or is it obsolete now?

quiet = true
}
allocatedTasks := make([]*api.Task, 0, len(toAllocate))
errorTasks := make([]*api.Task, 0, len(toAllocate))
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Whoops, forgot to update this code block. Fixed.

@aaronlehmann
Copy link
Copy Markdown
Collaborator

I think we should move it forward.

@wsong
Copy link
Copy Markdown
Author

wsong commented Dec 21, 2017

This was superseded by #2287

@wsong wsong closed this Dec 21, 2017
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