Skip to content
  • ale's avatar
    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