Anthony Romano
d680b8b5fb
grpcproxy: fix race between watch ranges delete() and broadcasts empty()
...
Checking empty() wasn't grabbing the broadcasts lock so the race detector
flags it as a data race with coalesce(). Instead, just return the number
of remaining watches following delete() and get rid of empty().
2016-11-28 15:53:41 -08:00
Gyu-Ho Lee
c31b1ab8d1
Merge pull request #6896 from gyuho/endpoints
...
clientv3: return copy of endpoints, not pointer
2016-11-23 11:51:48 -08:00
Gyu-Ho Lee
a08103c088
clientv3: return copy of endpoints, not pointer
...
Fix https://github.com/coreos/etcd/issues/6892 .
2016-11-23 11:33:54 -08:00
Gyu-Ho Lee
aea9c6668f
Merge pull request #6890 from gyuho/doc
...
Documentation/op-guide: add notes about 'datasource' in Prometheus
2016-11-22 10:43:30 -08:00
Gyu-Ho Lee
ede51b10f8
op-guide: add notes about Prometheus data source in Grafana
2016-11-22 10:34:41 -08:00
fanmin shi
ec5f9bce63
Merge pull request #6886 from fanminshi/fix_dial_grpc
...
functional-tester: add withBlock() to grpc dial
2016-11-21 11:33:31 -08:00
fanmin shi
f7c721b746
Merge pull request #6867 from fanminshi/fix_checking_timeout
...
etcd-tester: limit max retry backoff delay
2016-11-21 11:20:32 -08:00
fanmin shi
2ccba33dd1
functional-tester: add withBlock() to grpc dial
...
grpc dail withTimeout() only works if withBlock() option is present.
2016-11-21 11:15:12 -08:00
fanmin shi
2ac1c4c9ed
etcd-tester:limit max retry backoff delay
...
grpc uses expoential retry if a connection is lost. grpc will sleep base on exponential delay.
if delay is too large, it slows down tester.
2016-11-21 10:58:55 -08:00
Xiang Li
0326d6fdd3
Merge pull request #6877 from coreos/fix_test
...
etcd-tester: do not resolve localhost
2016-11-21 09:52:31 -08:00
Xiang Li
69470b5e5f
Merge pull request #6878 from absolute8511/fix-raftexample-test
...
raftexample: confState should be saved after apply
2016-11-21 09:51:10 -08:00
Xiang Li
d7c98a4695
Merge pull request #6879 from xiang90/raft_test
...
raft: fix TestNodeProposeAddDuplicateNode
2016-11-20 22:19:44 -08:00
Xiang Li
f2eb8560ed
raft: fix TestNodeProposeAddDuplicateNode
...
Only send signal after applying conf change.
Or deadlock might happen if raft node receives
ready without conf change when the test server
is slow.
2016-11-20 21:59:31 -08:00
Xiang Li
859142033f
Merge pull request #6866 from absolute8511/master
...
raft: add node should reset the pendingConf state
2016-11-20 21:34:37 -08:00
Vincent Lee
e6d1ebcc1d
raft: use the channel instead of sleep to make test case reliable
2016-11-21 13:30:15 +08:00
Vincent Lee
bc6f5ad53e
raft: fix test case for data race
2016-11-21 10:30:36 +08:00
Vincent Lee
62bd5477b9
raft: fix test case, should wait config propose applied
2016-11-21 10:10:34 +08:00
Vincent Lee
16e3ab0f11
raft: test case to check the duplicate add node propose
2016-11-20 16:58:11 +08:00
Vincent Lee
e8d06d8e4d
raftexample: confState should be saved after apply
2016-11-20 16:51:33 +08:00
Xiang Li
b1178469be
etcd-tester: do not resolve localhost
2016-11-19 18:38:26 -08:00
Xiang Li
7e7c7e157e
Merge pull request #6873 from heyitsanthony/proxy-v3-watch-canceled-sync
...
grpcproxy: fix deadlock on watch broadcasts stop
2016-11-18 22:34:35 -08:00
Gyu-Ho Lee
bb4884e957
Merge pull request #6861 from gyuho/grpc-proxy-metrics
...
etcdmain: add '/metrics' HTTP/1 path to grpc-proxy
2016-11-18 20:03:52 -08:00
Gyu-Ho Lee
a39509ee5b
etcdmain: add '/metrics' HTTP/1 path to grpc-proxy
2016-11-18 19:40:06 -08:00
Anthony Romano
7618fdd1d6
grpcproxy: fix deadlock on watch broadcasts stop
...
Holding the WatchBroadcasts lock and waiting on donec was
causing a deadlock with the coalesce loop. Was causing
TestV3WatchSyncCancel to hang.
2016-11-18 16:55:26 -08:00
Xiang Li
2acf0806fb
Merge pull request #6869 from sinsharat/mvcc_remove_unused_restore_method
...
mvcc: remove unused restore method
2016-11-18 15:52:45 -08:00
Anthony Romano
c1581732fd
Merge pull request #6872 from heyitsanthony/srv-alert
...
discovery: warn on scheme mismatch
2016-11-18 13:41:34 -08:00
Anthony Romano
428cb21a3f
Merge pull request #6864 from heyitsanthony/watch-doc
...
Documentation: add grpc gateway watch example
2016-11-18 13:30:16 -08:00
Anthony Romano
74ae67b835
discovery: warn on scheme mismatch
2016-11-18 13:12:14 -08:00
Gyu-Ho Lee
b7cc698444
version: bump up v3.1.0-rc.1+git
2016-11-18 11:41:29 -08:00
Anthony Romano
ccf154e706
Documentation: add grpc gateway watch example
...
Shows how to use watch via grpc gateway.
2016-11-18 11:37:35 -08:00
Anthony Romano
6d9168a2ec
integration: don't expect recv to stop on CloseSend in waitResponse
2016-11-18 11:37:35 -08:00
Gyu-Ho Lee
3d5ba43211
version: bump up v3.1.0-rc.1
v3.1.0-rc.1
2016-11-18 11:16:01 -08:00
Gyu-Ho Lee
7da3019f42
Merge pull request #6862 from gyuho/network-interface
...
pkg/netutil: get default interface for tc commands
2016-11-18 10:11:59 -08:00
sharat
43078d3ced
mvcc: remove unused restore method
2016-11-18 23:04:39 +05:30
Gyu-Ho Lee
097cdbd0e4
pkg/netutil: get default interface for tc commands
...
Fix https://github.com/coreos/etcd/issues/6841 .
2016-11-17 22:49:17 -08:00
Xiang Li
68b04b7067
Merge pull request #6846 from sinsharat/mvcc_store_restore_timeout_fix
...
mvcc: store.restore taking too long triggering snapshot cycle fix
2016-11-17 22:06:43 -08:00
Anthony Romano
456569f45d
e2e: add test for v3 watch over grpc gateway
2016-11-17 15:49:58 -08:00
Anthony Romano
9a20743190
v3rpc: don't close watcher if client closes send
...
grpc-gateway will CloseSend but still want to receive updates.
2016-11-17 15:33:37 -08:00
Vincent Lee
4401d88546
raft: add node should reset the pendingConf state
...
After add node conf proposed twice with the same node id, the pending state is not reset because
the addNode returned without setting the pending state at the second
time and the pending state will always be true unless other conf changed. During this we
can not add any new node because the propose will be ignored since the
pending state is true.
2016-11-17 15:50:13 +08:00
sharat
aa2b5aec1b
mvcc : Added benchmark for store.resotre
2016-11-17 04:01:15 +05:30
sharat
f014cca644
mvcc: TestStoreRestore fix
2016-11-16 16:58:42 +05:30
sharat
95fb41a923
mvcc: store.restore taking too long triggering snapshot cycle fix
2016-11-16 16:31:20 +05:30
Xiang Li
377f19b003
Merge pull request #6857 from LK4D4/non_block_status
...
raft: return empty status if node is stopped
2016-11-15 16:44:50 -08:00
Alexander Morozov
7afc490c95
raft: return empty status if node is stopped
...
If the node is stopped, then Status can hang forever because there is no
event loop to answer. So, just return empty status to avoid deadlocks.
Fix #6855
Signed-off-by: Alexander Morozov <lk4d4math@gmail.com>
2016-11-15 15:45:23 -08:00
Anthony Romano
e55b8485dd
Merge pull request #6856 from heyitsanthony/proxy-lease-fix
...
grpcproxy: copy range request before storing in cache
2016-11-15 15:43:00 -08:00
Anthony Romano
1358a9d460
grpcproxy: copy range request before storing in cache
...
Reused Range requests would have Serialized overwritten with 'true'.
Was failing on TestV3LeaseSwitch.
2016-11-15 14:35:00 -08:00
Anthony Romano
7c8f13aed7
Merge pull request #6852 from heyitsanthony/fix-proxy-dbarrier
...
grpcproxy: watch next revision should be start revision when not 0
2016-11-15 09:21:18 -08:00
Anthony Romano
98a7c642d4
grpcproxy: watch next revision should be start revision when not 0
...
The create header revision is the current etcd revision. For watches with
rev=0, the next revision is hdr.rev+1. For watches with rev=n, the next
revision should be n.
Fixes TestDoubleBarrier timeouts.
2016-11-14 16:46:02 -08:00
Gyu-Ho Lee
677606da7d
Merge pull request #6851 from gyuho/metrics
...
v3rpc: replace grpc metrics w/ go-grpc-prometheus
2016-11-14 16:09:17 -08:00
Gyu-Ho Lee
7cac755df2
op-guide: update gRPC requests metrics
2016-11-14 15:20:16 -08:00