Skip to content
Snippets Groups Projects
Select Git revision
  • renovate/github.com-miekg-dns-1.x
  • renovate/google.golang.org-protobuf-1.x
  • renovate/go.etcd.io-etcd-server-v3-3.x
  • renovate/go.etcd.io-etcd-client-v3-3.x
  • renovate/golang.org-x-crypto-0.x
  • renovate/github.com-prometheus-common-0.x
  • renovate/google.golang.org-grpc-1.x
  • renovate/github.com-prometheus-client_golang-1.x
  • renovate/golang.org-x-sync-0.x
  • renovate/github.com-lpar-gzipped-v2-2.x
  • master default
  • httplog
12 results

masterelection.go

Blame
    • ale's avatar
      03a67c17
      refactor masterelection to remove races; add tests · 03a67c17
      ale authored
      Master election code should be more robust now, this commit eliminates
      the discrepancy between role and master info (previously it was possible
      for these two to be non synchronized).
      
      This commit also includes an in-memory etcd mock, which implements
      enough of the etcd interface to test the masterelection code.
      03a67c17
      History
      refactor masterelection to remove races; add tests
      ale authored
      Master election code should be more robust now, this commit eliminates
      the discrepancy between role and master info (previously it was possible
      for these two to be non synchronized).
      
      This commit also includes an in-memory etcd mock, which implements
      enough of the etcd interface to test the masterelection code.