open-vault/physical
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
..
alicloudoss Alibaba Object Storage support (#4783) 2018-08-13 17:03:24 -04:00
azure Read all pages when list results are paged (#4983) 2018-07-24 14:24:32 -04:00
cassandra Re-add dockertest and fix up imports and update script (#4909) 2018-07-11 17:49:13 -04:00
cockroachdb Re-add dockertest and fix up imports and update script (#4909) 2018-07-11 17:49:13 -04:00
consul Add context handling to Consul operations (#4739) 2018-06-11 11:03:00 -04:00
couchdb Re-add dockertest and fix up imports and update script (#4909) 2018-07-11 17:49:13 -04:00
dynamodb Clean up container on connection failure, switch to ory/dockertest on package postgresql (#5050) 2018-08-07 09:56:33 -07:00
etcd Change x/net context package to go stdlib 2018-07-13 10:59:34 -04:00
file Add request timeouts in normal request path and to expirations (#4971) 2018-07-24 14:50:49 -07:00
foundationdb FoundationDB physical backend (#4900) 2018-07-16 10:18:09 -04:00
gcs Fix Google Cloud races (#5081) 2018-08-14 09:53:36 -04:00
inmem Add request timeouts in normal request path and to expirations (#4971) 2018-07-24 14:50:49 -07:00
manta Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
mssql Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
mysql MySQL HA Backend Support (#4686) 2018-08-13 17:02:31 -04:00
postgresql Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
s3 Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
spanner Fix Google Cloud races (#5081) 2018-08-14 09:53:36 -04:00
swift Add additional config keys for swift (#4901) 2018-07-11 08:29:29 -07:00
zookeeper physical/zookeeper: Re-try to release lock in case of failure (#4569) 2018-05-17 15:52:50 -07:00
cache.go Revert some of commit 050ab805a7565c5b0cadb0176023031ee5f0d17b. (#4768) 2018-06-14 13:44:13 -04:00
latency.go Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
physical.go MySQL HA Backend Support (#4686) 2018-08-13 17:02:31 -04:00
physical_access.go Remove core restriction in cache and turn it into an active/standby restriction instead (#3849) 2018-01-25 22:21:51 -05:00
physical_view.go Add compile tests to verify physical stores satisfy the correct interfaces (#3820) 2018-01-19 17:44:24 -08:00
testing.go DynamoDB Nested Values Bug (#4570) 2018-05-16 13:30:56 -04:00
transactions.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
types.pb.go Make proto 2018-07-10 20:49:48 -04:00
types.proto adding option go_package to protos (#4687) 2018-06-04 10:19:26 -04:00