open-vault/physical/spanner
Seth Vargo 6dcecbdfda Fix Google Cloud races (#5081)
* storage/gcs: fix race condition in releasing lock

Previously we were deleting a lock without first checking if the lock we were deleting was our own. There existed a small period of time where vault-0 would lose leadership and vault-1 would get leadership. vault-0 would delete the lock key while vault-1 would write it. If vault-0 won, there'd be another leader election, etc.

This fixes the race by using a CAS operation instead.

* storage/gcs: properly break out of loop during stop

* storage/spanner: properly break out of loop during stop
2018-08-14 09:53:36 -04:00
..
spanner.go Use context from stdlib in google physical backends (#4922) 2018-07-13 11:00:38 -04:00
spanner_ha.go Fix Google Cloud races (#5081) 2018-08-14 09:53:36 -04:00
spanner_ha_test.go Use context from stdlib in google physical backends (#4922) 2018-07-13 11:00:38 -04:00
spanner_test.go Use context from stdlib in google physical backends (#4922) 2018-07-13 11:00:38 -04:00