-
- Downloads
refactor masterelection to remove races; add tests
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.
Showing
- masterelection/masterelection.go 104 additions, 76 deletionsmasterelection/masterelection.go
- masterelection/masterelection_test.go 67 additions, 0 deletionsmasterelection/masterelection_test.go
- node/icecast.go 17 additions, 11 deletionsnode/icecast.go
- node/node.go 2 additions, 2 deletionsnode/node.go
- node/node_test.go 81 additions, 0 deletionsnode/node_test.go
- util/mock_etcd.go 193 additions, 0 deletionsutil/mock_etcd.go
masterelection/masterelection_test.go
0 → 100644
node/node_test.go
0 → 100644
util/mock_etcd.go
0 → 100644
Please register or sign in to comment