Skip to content

Commit

Permalink
consul: Disable conflict resolution. See #97.
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed May 16, 2014
1 parent 1611d98 commit e08ca71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ func (s *Server) setupSerf(conf *serf.Config, ch chan serf.Event, path string, w
conf.EventCh = ch
conf.SnapshotPath = filepath.Join(s.config.DataDir, path)
conf.ProtocolVersion = protocolVersionMap[s.config.ProtocolVersion]

// Until Consul supports this fully, we disable automatic resolution.
// When enabled, the Serf gossip may just turn off if we are the minority
// node which is rather unexpected.
conf.EnableNameConflictResolution = false
if err := ensurePath(conf.SnapshotPath, false); err != nil {
return nil, err
}
Expand Down

0 comments on commit e08ca71

Please sign in to comment.