Anthony Romano
993fd76b19
clientv3: respect first stream error in lease recv loop
...
Fixes #4622
2016-02-25 16:59:08 -08:00
Gyu-Ho Lee
81f77ee4f3
clientv3: fix txn example code
2016-02-25 10:52:47 -08:00
Gyu-Ho Lee
8f3981c651
Merge pull request #4612 from gyuho/watch_not_panic
...
*: watch true cancel, created for wrong rev
2016-02-24 22:07:03 -07:00
Gyu-Ho Lee
a78604dacb
*: watch true cancel, created for wrong rev
...
This sets Created and Cancel true in pb.WatchResponse
when it has received wrong start revision instead of
panic. So that clientv3 can set 'Canceled' in WatchResponse
as well.
Fix https://github.com/coreos/etcd/issues/4610 .
2016-02-24 20:56:17 -08:00
Anthony Romano
ed44bb00f8
etcdctlv3: lock command
2016-02-24 17:23:40 -08:00
Anthony Romano
d4b2044eb1
clientv3/concurrency: Mutex
2016-02-24 17:23:40 -08:00
Anthony Romano
20b4336cdb
clientv3/concurrency: Session
...
A client may bind itself to a session lease to signal its
continued in participation with the cluster.
2016-02-24 16:40:16 -08:00
Anthony Romano
9f569842f0
clientv3: move syncer to mirror package
...
to be in line with sync meaning process synchronization, not data
synchronization
2016-02-24 14:21:41 -08:00
Anthony Romano
afa0368dcc
*: fix godoc bugs in interfaces and slice fields
...
detected with goword
2016-02-24 00:45:40 -08:00
Gyu-Ho Lee
8f7948641c
contrib/recipes: replace WatchPrefix with Watch
2016-02-23 20:02:24 -08:00
Gyu-Ho Lee
a24d276891
clientv3: combine Watch, WatchPrefix with variadic
...
For https://github.com/coreos/etcd/issues/4598 .
2016-02-23 20:02:21 -08:00
Gyu-Ho Lee
53f94c22b3
Merge pull request #4600 from gyuho/opoption_doc
...
clientv3: add GoDoc to OpOption
2016-02-23 15:36:38 -08:00
Gyu-Ho Lee
5bc08b7475
clientv3: add GoDoc to OpOption
2016-02-23 15:18:33 -08:00
Hongchao Deng
a19b30b7ab
clientv3: kv.Delete typo
2016-02-23 15:07:10 -08:00
Gyu-Ho Lee
72a1e5618b
clientv3: add more code examples
2016-02-23 14:05:36 -08:00
Gyu-Ho Lee
f0686189e5
clientv3: README, GoDoc examples
2016-02-22 14:21:36 -08:00
Anthony Romano
c5b51946eb
*: exported godoc fixups
2016-02-21 20:36:44 -08:00
Anthony Romano
50ad181477
clientv3: support context cancellation on lease keep alives
2016-02-20 23:21:15 -08:00
Anthony Romano
7b82576b60
clientv3: copy correct pointers into txn comparisons
...
Was copying the range variable's pointer; all elements of cmp were the same.
2016-02-20 22:01:33 -08:00
Anthony Romano
11bb07c248
Merge pull request #4564 from heyitsanthony/fix-watchreconnrequest
...
clientv3: fix current watcher reconnection
2016-02-18 15:14:22 -08:00
Anthony Romano
f66162932c
clientv3: fix current watcher reconnection
...
If a current watcher didn't receive any events, a reconnect cycle would
advance its revision to the store's current revision. Instead, reconnect
using the watcher's creation header revision if the watcher hasn't received
any events.
Fixes #4502
2016-02-18 15:01:57 -08:00
Anthony Romano
4fc89678b2
etcdserver: add >= support for v3 delete range
2016-02-18 12:34:04 -08:00
Anthony Romano
59291770d6
clientv3: WithPrefix operation option
2016-02-18 01:27:06 -08:00
Xiang Li
6ba9373962
clientv3/sync: fix getting empty key error
2016-02-15 22:01:11 -08:00
Xiang Li
24a6abaf59
*: move sync logic to clientv3/sync
2016-02-14 22:52:34 -08:00
Anthony Romano
2415303991
clientv3: typedef <-chan WatchResponse to WatchChan
2016-02-12 14:06:59 -08:00
Anthony Romano
8e411b1b3b
clientv3: send compacted revision before closing watch chan
2016-02-12 14:06:59 -08:00
Anthony Romano
ee1a03167d
storage, v3: pass compaction revision through watchresponse
2016-02-12 14:06:59 -08:00
Anthony Romano
6851fffdfb
clientv3: support >= Range requests
...
Turns out grpc will convert an empty byte string to nil, so use "\0" to
indicate Range on >= key in v3 grpc protocol.
2016-02-12 14:06:59 -08:00
Xiang Li
5908e5b601
clientv3: support serializable
2016-02-12 12:24:46 -08:00
Anthony Romano
4854d7f69d
storage: support ranges for >= key
...
If end == "", range(key, end) will give all keys >= key.
2016-02-12 09:45:43 -08:00
Anthony Romano
a78826e025
Merge pull request #4489 from heyitsanthony/fix-watcher-reqresend
...
clientv3: fix bad variable capture in watch request retry
2016-02-11 14:20:17 -08:00
Gyu-Ho Lee
b19d57e1c3
clientv3: fix godoc for member apis
2016-02-11 13:55:38 -08:00
Anthony Romano
3b7bd38a2d
clientv3: fix bad variable capture in watch request retry
...
variables would be niled out when the goroutine runs, causing a crash
2016-02-11 13:35:07 -08:00
Gyu-Ho Lee
5fbf64c144
clienv3: add MemberAdd method based on v3 change
2016-02-11 13:27:34 -08:00
Anthony Romano
3c9e8540a7
clientv3: optionize put and delete
2016-02-10 15:03:11 -08:00
Anthony Romano
51c4894f62
clientv3: ctx-ize KV
2016-02-09 17:42:34 -08:00
Anthony Romano
15c8876e4c
Merge pull request #4455 from heyitsanthony/etcdctlv3-compaction-err
...
etcdctlv3: report compaction error, if any
2016-02-08 19:15:40 -08:00
Anthony Romano
aa9d3c8b74
etcdctlv3: report compaction error, if any
2016-02-08 15:09:03 -08:00
Anthony Romano
4f41d361a8
clientv3: make compare compliant with proposed txn usage
2016-02-08 13:48:29 -08:00
Anthony Romano
8dcd24bd64
clientv3: withOption for Gets
2016-02-08 13:11:55 -08:00
Anthony Romano
b7eb539b7a
clientv3/integration: add delay after restart in TestTxnWriteFail
...
CI was timing out with publish failures
2016-02-05 16:44:41 -08:00
Xiang Li
bc3fc4ea33
*: add etcdserver namespace for rpc error
2016-02-05 15:13:24 -08:00
Anthony Romano
a6008f41e2
clientv3: retry remote connection on txn write failure
2016-02-05 11:51:44 -08:00
Anthony Romano
0385734111
clientv3/integration: KV retry tests
...
make sure Get will succeed after reconnect cycle with and without Put failure
2016-02-05 10:56:42 -08:00
Anthony Romano
e3e4d09653
clientv3/integration: add timeouts to TestTxnWriteFail
...
so it doesn't take ten minutes to fail
2016-02-05 10:24:56 -08:00
Gyu-Ho Lee
d21ef68a0c
Merge pull request #4413 from gyuho/TestKVCompact
...
clientv3/integration: add TestKVCompact
2016-02-04 14:14:37 -08:00
Gyu-Ho Lee
5b4b1c7039
clientv3/integration: add TestKVCompact
2016-02-04 13:45:51 -08:00
Anthony Romano
9523c2d29f
clientv3/integration: txn tests
2016-02-04 08:40:24 -08:00
Anthony Romano
c07fc3e08e
Merge pull request #4407 from heyitsanthony/txn-no-retry
...
clientv3: don't retry txns that may modify the store
2016-02-03 15:37:49 -08:00