8000 Override stale dns entries received via gossip by bboreham · Pull Request #2081 · weaveworks/weave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Override stale dns entries received via gossip #2081

Merged
merged 4 commits into from
Mar 22, 2016

Conversation

bboreham
Copy link
Contributor

Fixes #1867 and #2023.

Also makes the merging of tombstones stable, where everything else is equal.

@bboreham bboreham added this to the 1.4.6 milestone Mar 21, 2016
@@ -105,6 +108,11 @@ func (e1 *Entry) addLowercase() {
e1.lHostname = strings.ToLower(e1.Hostname)
}

func (e *Entry) makeTombstone() {

This comment was marked as abuse.

@bboreham
Copy link
Contributor Author

I have covered all the points raised, but note weaveworks/mesh#28 means the data does not propagate until periodic gossip fires.

gossip.Entries.filter(func(e *Entry) bool {
return n.isKnownPeer(e.Origin)
if e.Origin == n.ourName {
n.infof("Received entry like mine: %v", e)

This comment was marked as abuse.

@bboreham
Copy link
Contributor Author

Updated again, with smoke-test working. See weaveworks/mesh#29

if isRestartedPeer {
conn.Log("connection added (restarted peer)")
peer.router.SendAllGossipDown(conn)
} else if isConnectedPeer {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@rade
Copy link
Member
rade commented Mar 22, 2016

Let's leave out the mesh changes; too dangerous for 1.4.6.

@bboreham bboreham force-pushed the issues/2023-override-stale-dns branch from aef8c1d to c2cf825 Compare March 22, 2016 12:58
@bboreham
Copy link
Contributor Author

Removed mesh changes, squashed commits

rade added a commit that referenced this pull request Mar 22, 2016
Override stale dns entries received via gossip

Fixes #1867 and #2023.
@rade rade merged commit 1664fce into 1.4 Mar 22, 2016
rade added a commit that referenced this pull request Apr 6, 2016
Update weaveworks/mesh to send gossip to restarted peer

Fixes #2085.
rade added a commit that referenced this pull request Apr 6, 2016
Immediately broadcast DNS records that "re-assert a peer's authority"
@rade rade deleted the issues/2023-override-stale-dns branch April 16, 2016 09:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0