a001651bc1
clientv3: remove dependency on lease package
2016-03-17 11:52:34 -07:00
44753594ec
v3rpc: move errors to v3rpc/rpctypes
...
Fixes #4771
2016-03-17 11:52:34 -07:00
22065fe334
clientv3: fix mirror and add integration test
2016-03-13 18:27:45 -07:00
3886129f52
clientv3/integration: fix TestTxnWriteFail
...
It might take client request more than dialtimeout to fail when
we kill the connection when the client is sending request.
2016-03-09 14:03:51 -08:00
e026b79c87
clientv3/integration: do not remove client member in TestMemberRemove
...
Fixes #4716
2016-03-08 11:55:26 -08:00
4eeea5ccda
clientv3/integration: remove invalid future revision test
...
Future revisions are now supported, so test is outdated.
2016-03-07 15:52:34 -08:00
27316196d8
clientv3: add WithProgressNotify
...
Client side for https://github.com/coreos/etcd/issues/4628 .
2016-03-04 09:47:13 -08:00
1e16758029
clientv3: add Err() to WatchResponse
...
Checking for number of events as a failure condition was a kludge.
2016-03-03 15:21:04 -08:00
16c35167df
clientv3: do not reconnect on request context cancellation
2016-03-03 13:43:16 -08:00
eb327c690b
clientv3: support watcher ranges
2016-02-29 15:20:41 -08:00
d02b1c982f
clientv3: return closed channel on Watch() cancel
...
was returning nil; difficult to use correctly
Fixes #4626
2016-02-26 12:16:41 -08:00
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
a24d276891
clientv3: combine Watch, WatchPrefix with variadic
...
For https://github.com/coreos/etcd/issues/4598 .
2016-02-23 20:02:21 -08:00
11bb07c248
Merge pull request #4564 from heyitsanthony/fix-watchreconnrequest
...
clientv3: fix current watcher reconnection
2016-02-18 15:14:22 -08:00
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
4fc89678b2
etcdserver: add >= support for v3 delete range
2016-02-18 12:34:04 -08:00
59291770d6
clientv3: WithPrefix operation option
2016-02-18 01:27:06 -08:00
2415303991
clientv3: typedef <-chan WatchResponse to WatchChan
2016-02-12 14:06:59 -08:00
8e411b1b3b
clientv3: send compacted revision before closing watch chan
2016-02-12 14:06:59 -08:00
5908e5b601
clientv3: support serializable
2016-02-12 12:24:46 -08:00
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
3c9e8540a7
clientv3: optionize put and delete
2016-02-10 15:03:11 -08:00
51c4894f62
clientv3: ctx-ize KV
2016-02-09 17:42:34 -08:00
8dcd24bd64
clientv3: withOption for Gets
2016-02-08 13:11:55 -08:00
b7eb539b7a
clientv3/integration: add delay after restart in TestTxnWriteFail
...
CI was timing out with publish failures
2016-02-05 16:44:41 -08:00
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
e3e4d09653
clientv3/integration: add timeouts to TestTxnWriteFail
...
so it doesn't take ten minutes to fail
2016-02-05 10:24:56 -08:00
d21ef68a0c
Merge pull request #4413 from gyuho/TestKVCompact
...
clientv3/integration: add TestKVCompact
2016-02-04 14:14:37 -08:00
5b4b1c7039
clientv3/integration: add TestKVCompact
2016-02-04 13:45:51 -08:00
9523c2d29f
clientv3/integration: txn tests
2016-02-04 08:40:24 -08:00
86aafcd15a
clientv3/integration: fix args format in Errorf/Printf
2016-02-03 22:17:58 +01:00
c7876d4111
clientv3/integration: fix member remove
...
Do not connect to the member to remove.
2016-02-02 20:49:00 -08:00
20673e384a
Merge pull request #4382 from xiang90/lease_keep_test
...
clientv3/integration: test lease keepalive
2016-02-02 12:01:22 -08:00
fd0e68d16b
clientv3/integration: test lease keepalive
2016-02-02 10:59:22 -08:00
5f20aaa457
Merge pull request #4360 from heyitsanthony/v3-client-watcher
...
V3 client watcher
2016-02-01 23:39:30 -08:00
87ed04ea6f
Merge pull request #4372 from gyuho/kv_delete
...
clientv3/integration: add TestKVDelete*
2016-02-01 23:30:11 -08:00
580c563ed6
clientv3: watcher implementation
2016-02-01 23:21:55 -08:00
a25423ca99
clientv3: implement cluster api
2016-02-01 21:46:23 -08:00
e49ae8b03f
clientv3/integration: add TestKVDelete*
2016-02-01 17:07:52 -08:00
7d278ef6bb
clientv3/integration: TestKVPut with lease id
2016-02-01 14:46:20 -08:00
bef7887c0d
clientv3/integration: add basic lease test
2016-02-01 12:59:44 -08:00
f6215574f2
*: kv range to return current revision
...
This changes the behavior of KV's range and tx range to return
current revision rather than range revision. This makes populating
range response header easier.
2016-01-30 17:37:34 -08:00
57dedd8c89
Revert "*: TestKVRange to clientv3/integration, fix rev"
2016-01-29 18:20:56 -08:00
69abdf8144
*: TestKVRange to clientv3/integration, fix rev
...
For https://github.com/coreos/etcd/issues/4338 .
And resp.Header.Revision should be from the one in storage
when we just do range, because there is no storage data
change.
2016-01-29 16:12:21 -08:00
1ac0ca5317
clientv3/integration: add tt.key string formatting verb to Fatalf call
2016-01-29 15:56:04 +09:00
1767788074
*: expose integration functions for clientv3
2016-01-28 21:21:34 -08:00