Anthony Romano
ef2d3feca6
Merge pull request #4528 from heyitsanthony/fix-watchcurrev
...
fix several watcher races
2016-02-17 14:26:33 -08:00
Anthony Romano
af225e7433
v3rpc: don't race on current watcher header revision
2016-02-17 14:03:52 -08:00
Anthony Romano
59e7be4a2a
v3api: send watch events only after sending watchid creation
...
If events show up before the watch id, the client won't be able
to match the event with the requested watcher.
2016-02-17 01:06:55 -08:00
Xiang Li
994333e720
*: record the number of bytes of snapshot sent/received
2016-02-16 16:08:26 -08:00
Gyu-Ho Lee
93f2a4487a
Merge pull request #4507 from gyuho/better_hash
...
etcdserver: populate ResponseHeader in Hash method
2016-02-12 14:36:26 -08:00
Gyu-Ho Lee
2710e4eed1
etcdserver: populate ResponseHeader in Hash method
2016-02-12 14:26:18 -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
30c11c1bca
*: support local range request
2016-02-12 12:04:06 -08:00
Anthony Romano
9cd45312d5
Merge pull request #4505 from heyitsanthony/v3-range-ge
...
storage: support ranges for >= key
2016-02-12 10:03:45 -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
616f395920
etcdserver: use fifo scheduler for applier
2016-02-11 19:21:30 -08:00
Gyu-Ho Lee
a56287b9b4
etcdserver: include IsLeader in etcdserverpb.Member
2016-02-11 13:04:03 -08:00
Xiang Li
0fde354eba
Merge pull request #4164 from cchamplin/ttl-refresh
...
store/httpapi: support refresh ttl without firing watch
2016-02-08 13:20:34 -08:00
Xiang Li
35567221a7
*: limit request size for v3
2016-02-08 12:54:03 -08:00
Caleb Champlin
82778ed478
Add refresh parameter to allow TTL refreshes without firing watch/wait responses
2016-02-08 10:37:37 -07:00
Anthony Romano
fe7cfe4d3d
rafthttp: plumb local peer URLs through transport
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
Xiang Li
e44e753e66
pkg/idutil: reduce conflict rate from 1% to 0.005%
...
Perviously, we only use 8bits from member identification
in id generation. The conflict rate is A(256,3)/256^3, which
is around 1%. Now we use 16bites to reduce the rate to 0.005%.
We can attach the full member id into id generation if needed...
2016-02-04 13:25:18 -08:00
Gyu-Ho Lee
2d197ac9e8
*: add kv Hash method (for testing purpose)
2016-02-03 12:52:39 -08:00
Hitoshi Mitake
f7d35a1ef8
etcdserver: update comments in a generated file
...
On the latest master branch, etcdserver/etcdserverpb/etcdserver.pb.go
is changed when scripts/genproto.sh is executed. The content only has
changes for comment. Therefore it is not important but the change is
annoying when we update the proto file.
2016-02-04 00:45:16 +09:00
Xiang Li
3ed404633a
v3rpc: add compacted field from wresp
2016-02-02 23:24:15 -08:00
Anthony Romano
2919be91b9
Merge pull request #4387 from heyitsanthony/integration-cluster-speedup
...
integration: decrease timeout for isMemberBootstrapped
2016-02-02 14:45:18 -08:00
Anthony Romano
9ae8d85049
integration: decrease timeout for isMemberBootstrapped
...
Spending seconds(!) when it would fail anyway.
integration/TestV3 (before): 100.670
integration/TestV3 (after): 29.571
2016-02-02 14:34:58 -08:00
Xiang Li
6f72b31316
integration: add test promote and move lease tests to lease_test.go
2016-02-02 13:45:11 -08:00
Anthony Romano
c5c5063efe
etcdserver: reject v3 txns with duplicate put keys
...
An API check to support PR #4363 ; bad requests didn't return an error.
2016-02-02 12:32:33 -08:00
Xiang Li
bef7887c0d
clientv3/integration: add basic lease test
2016-02-01 12:59:44 -08:00
Xiang Li
220fba32a3
Merge pull request #4353 from xiang90/lease
...
clientv3: initial lease
2016-02-01 10:40:44 -08:00
Xiang Li
f2c24dec05
clientv3: initial lease
2016-02-01 09:55:32 -08:00
Anthony Romano
20461ab11a
*: fix many typos
2016-01-31 21:42:39 -08:00
Gyu-Ho Lee
57dedd8c89
Revert "*: TestKVRange to clientv3/integration, fix rev"
2016-01-29 18:20:56 -08:00
Anthony Romano
f6031b9d11
Merge pull request #4349 from heyitsanthony/v3-client-conntls
...
V3 client TLS
2016-01-29 17:05:38 -08:00
Anthony Romano
4634874d99
etcdmain, integration, v3rpc: consolidate grpc server setup
2016-01-29 16:38:11 -08:00
Gyu-Ho Lee
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
Anthony Romano
082a6c304e
etcdserver/test: use recorderstream in TestApplyRepeat
...
was racing when waiting for the node commit
fixes #4333
2016-01-28 17:19:06 -08:00
Heungsub Lee
c4a0159601
documentation: fix typo "a etcd" -> "an etcd"
...
"a" is not a correct article for "etcd".
2016-01-28 19:19:32 +09:00
Xiang Li
a3b7876a3c
clientv3: use retryConnection
2016-01-27 22:31:15 -08:00
Anthony Romano
14255854d8
Merge pull request #4298 from heyitsanthony/fix-testapplysnapshot-race
...
etcdserver/test: synchronously wait on TestApplySnapshotAndCommittedE…
2016-01-26 21:18:09 -08:00
Anthony Romano
64596f0c49
etcdserver/test: synchronously wait on TestApplySnapshotAndCommittedEntries
...
Replaces the RecorderBuffered with a RecorderStream so Wait will block
waiting for updates to the etcdserver store.
Fixes #4296
2016-01-26 21:03:03 -08:00
Xiang Li
36cc8446c7
*: finish member api implementation
2016-01-26 18:09:14 -08:00
Gyu-Ho Lee
ad15bdcb07
etcdserver: update gRPC, proto interface
2016-01-26 17:41:19 -08:00
Anthony Romano
4c024b305f
Merge pull request #4290 from heyitsanthony/fix-apply-noents
...
etcdserver: don't try to apply empty message list
2016-01-26 14:11:54 -08:00
Anthony Romano
bd02d668c8
etcdserver: don't try to apply empty message list
...
If all messages have been applied, don't apply an empty messages list;
otherwise appliedi will update to 0 and etcd will panic.
Fixes #4278
2016-01-26 11:56:37 -08:00
Xiang Li
179a8f9768
Merge pull request #4289 from xiang90/member_api
...
etcdserver: initial member api proto
2016-01-26 10:16:44 -08:00
Xiang Li
864fc197c1
etcdserver: initial member api proto
2016-01-26 09:56:50 -08:00
Xiang Li
59c6735c3c
Merge pull request #4282 from xiang90/range_invalid
...
etcdserver: check invalid range in txn
2016-01-25 22:23:55 -08:00
Xiang Li
dd1bbaa293
Merge pull request #4281 from mitake/remove-cached-auth-flag
...
etcdserver, auth: not cache a flag of auth status
2016-01-25 21:55:44 -08:00
Xiang Li
a56387bc3e
Merge pull request #4284 from xiang90/max_txn
...
v3rpc: check max ops in txn
2016-01-25 21:16:01 -08:00
Xiang Li
c8bf77c722
v3rpc: check max ops in txn
2016-01-25 21:04:19 -08:00
Xiang Li
128b5e7387
etcdserver: check invalid range in txn
2016-01-25 20:21:17 -08:00