Skip to content

Purge stale nodes with same prefix and IP#1467

Merged
sanimej merged 1 commit intomoby:masterfrom
mrjana:networkdb
Sep 23, 2016
Merged

Purge stale nodes with same prefix and IP#1467
sanimej merged 1 commit intomoby:masterfrom
mrjana:networkdb

Conversation

@mrjana
Copy link
Copy Markdown
Contributor

@mrjana mrjana commented Sep 23, 2016

Since the node name randomization fix, we need to make sure that we
purge the old node with the same prefix and same IP from the nodes
database if it still present. This causes unnecessary reconnect
attempts.

Also added a change to avoid unnecessary update of local lamport time
and only do it of we are ready to do a push pull on a join. Join should
happen only when the node is bootstrapped or when trying to reconnect
with a failed node.

Signed-off-by: Jana Radhakrishnan mrjana@docker.com

Since the node name randomization fix, we need to make sure that we
purge the old node with the same prefix and same IP from the nodes
database if it still present. This causes unnecessary reconnect
attempts.

Also added a change to avoid unnecessary update of local lamport time
and only do it of we are ready to do a push pull on a join. Join should
happen only when the node is bootstrapped or when trying to reconnect
with a failed node.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
@sanimej
Copy link
Copy Markdown

sanimej commented Sep 23, 2016

LGTM, waiting for CI green

@sanimej sanimej merged commit bf3d9cc into moby:master Sep 23, 2016
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.

3 participants