Anthony Romano
cab7572b00
store: separate tests that need Store from those needing *store
2017-08-31 11:47:40 -07:00
Anthony Romano
8091be6e97
v2v3: ServerV2 backed by clientv3
2017-08-31 11:47:40 -07:00
Anthony Romano
525fbba1bd
etcdctl3: update to use RequestV2 instead of Request
2017-08-31 11:47:40 -07:00
Anthony Romano
758c3c09fd
etcdserver: refactor v2 request processing
...
Makes interfaces more reusable.
2017-08-31 11:47:40 -07:00
Anthony Romano
1d3afd4bb5
etcdhttp, v2http, etcdserver: use etcdserver.{Server,ServerV2} interfaces
2017-08-31 11:47:40 -07:00
Xiang Li
565831c21c
Merge pull request #8455 from janardhan1993/patch-1
...
Persist entries before hardstate.
2017-08-31 06:45:50 -07:00
Janardhan Reddy
b847cde981
raft: update doc for persisting entries before hardstate
2017-08-31 16:24:28 +10:00
Anthony Romano
7d4a8a6935
Merge pull request #8466 from heyitsanthony/tls-srv-mismatch
...
srv: if a host matches a peer, only use if url schemes match
2017-08-30 10:42:20 -07:00
Anthony Romano
409805e9c7
Merge pull request #8469 from mkumatag/fix_govet
...
Fix go vet errors
2017-08-30 10:06:06 -07:00
Anthony Romano
247b4ef904
Merge pull request #8465 from heyitsanthony/covbadge
...
README: add coverage badge
2017-08-30 10:05:03 -07:00
Manjunath A Kumatagi
cd772ea737
pkg/pbutil: Fix go vet errors
2017-08-30 20:07:14 +05:30
Anthony Romano
a671703c08
srv: if a host matches a peer, only use if url schemes match
...
The https scheme for a peer advertise URL was ignored when resolving through
SRV records.
2017-08-29 23:29:56 -07:00
Anthony Romano
d31c442197
README: add coverage badge
2017-08-29 22:39:11 -07:00
Anthony Romano
7cf8eb8dce
Merge pull request #8459 from heyitsanthony/mvcc-cancel-close
...
mvcc: only remove watch cancel after cancel completes
2017-08-29 09:52:48 -07:00
Anthony Romano
896447ed99
mvcc: only remove watch cancel after cancel completes
...
If Close() is called before Cancel()'s cancel() completes, the
watch channel will be closed while the watch is still in the
synced list. If there's an event, etcd will try to write to a
closed channel. Instead, remove the watch from the bookkeeping
structures only after cancel completes, so Close() will always
call it.
Fixes #8443
2017-08-28 17:06:33 -07:00
Anthony Romano
bd53ae5680
mvcc: test concurrently closing watch streams and canceling watches
...
Triggers a race that causes a write to a closed watch stream channel.
2017-08-28 17:06:32 -07:00
Gyu-Ho Lee
86d15d1b1c
Merge pull request #8457 from mitake/fix-false-groutine-leaks
...
integration: clean up resources in error paths of TestV3WatchFromCurr…
2017-08-28 12:21:54 -07:00
Hitoshi Mitake
3fefac17b2
integration: clean up resources in error paths of TestV3WatchFromCurrentRevision
...
Current error paths of TestV3WatchFromCurrentRevision don't clean the
used resources including goroutines. Because go's tests are executed
continuously in a single process, the leaked goroutines makes error
logs bloated like the below case:
https://jenkins-etcd-public.prod.coreos.systems/job/etcd-coverage/2143/
This commit lets the error paths clean the resources.
2017-08-28 16:31:36 +09:00
blueblue
9b92e1b2d0
flag: improve StringFlags by support set default value when init ( #8447 )
...
* flag: improve StringFlags by support set default value when init
when init flagSet, set default value should be moved to StringFlags init
func, which is more friendly
personal proposal
* flag: code improved for StringFlags
2017-08-28 00:02:11 -07:00
Anthony Romano
60d46a3626
Merge pull request #8453 from heyitsanthony/fix-ctlcov
...
etcdctl: unset ETCDCTL_ARGS on cov builds
2017-08-27 19:34:11 -07:00
Xiang Li
fec145f086
Merge pull request #8454 from lorneli/master
...
pkg/wait: change list's lock to RWMutex
2017-08-27 10:44:50 -07:00
lorneli
54fcdb4b5c
pkg/wait: change list's lock to RWMutex
...
Change list's lock from Mutex to RWMutex, which allows concurrent
access for list.IsRegistered function.
2017-08-27 18:23:18 +08:00
Anthony Romano
1dea4c688e
etcdctl: unset ETCDCTL_ARGS on cov builds
...
The stricter warnings on pkg/flags generates extra output that
break coverage tests. Unset the ETCDCTL_ARGS environment variable
so the warnings aren't printed.
2017-08-25 22:43:14 -07:00
Gyu-Ho Lee
c9f677c0ea
Merge pull request #8452 from gyuho/badge
...
clientv3: fix godoc badge link
2017-08-25 17:47:29 -07:00
Gyu-Ho Lee
e441c57972
clientv3: fix godoc badge link
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-25 17:44:36 -07:00
Anthony Romano
ef5e77e361
Merge pull request #8442 from heyitsanthony/oldrev-test
...
integration: check concurrent auth ops don't cause old rev errors
2017-08-25 12:03:32 -07:00
Gyu-Ho Lee
d76b29c4d7
Merge pull request #8449 from gyuho/go1.9
...
*: bump up to Go 1.9 in tests
2017-08-25 09:48:44 -07:00
Gyu-Ho Lee
52855bac49
*: bump up to Go 1.9 in tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-24 19:29:26 -07:00
fanmin shi
4ec31f4f7f
Merge pull request #8437 from fanminshi/no_outbound_limit_size
...
v3rpc: use MaxRecvMsgSize and MaxSendMsgSize to limit msg size
2017-08-24 09:52:15 -07:00
Gyu-Ho Lee
752c161ebf
Merge pull request #8435 from gyuho/doc
...
Documentation/v2: remove implementation detail
2017-08-24 08:32:13 -07:00
Gyu-Ho Lee
d3c8f9e856
Documentation/v2: remove implementation detail
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-23 14:56:44 -07:00
Anthony Romano
dfed636e5a
integration: check concurrent auth ops don't cause old rev errors
2017-08-23 14:29:38 -07:00
Anthony Romano
67d932154c
testutil: don't panic on AssertNil on non-nil errors
2017-08-23 14:26:03 -07:00
Gyu-Ho Lee
897cadc88c
Merge pull request #8436 from gyuho/bbolt
...
vendor: upgrade 'coreos/bbolt' to v1.3.1-coreos.1
2017-08-22 20:51:30 -07:00
Anthony Romano
8e7a0de114
Merge pull request #8439 from heyitsanthony/stm-serialized-snapshot
...
concurrency: retry snapshot serializable stm if writes since first header rev
2017-08-22 20:47:57 -07:00
Anthony Romano
b206afc4a7
concurrency: fix STM example to add to balance
...
Worked by coincidence; the txn would always retry and there
was a 1/10 chance it would pass by selecting the same to/from keys.
2017-08-22 19:39:22 -07:00
Anthony Romano
1d195521c7
concurrency: retry snapshot serializable stm if writes since first header rev
...
Was checking the rset key mod rev, which does not work.
2017-08-22 19:39:22 -07:00
Anthony Romano
b9ef49142c
integration: test serializable snapshot STM with old readset revisions
...
Was hanging.
2017-08-22 19:39:22 -07:00
fanmin shi
d2ca782277
v3rpc: limit recv size using MaxRecvMsgSize and send using MaxSendMsgSize
...
grpc 1.3 uses MaxMsgSize() to limit received message size. However, grpc 1.4 introduces a 4mb default limit on send message size. In etcd, server shouldn't be limit size of message that it can be sent. Hence, set maximum size of send message using MaxSendMsgSize().
2017-08-22 14:31:01 -07:00
Gyu-Ho Lee
af4957ead8
vendor: upgrade 'coreos/bbolt' to v1.3.1-coreos.1
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-22 11:03:24 -07:00
Anthony Romano
5c975fdb10
Merge pull request #8420 from heyitsanthony/corrupt-alarm
...
corruption alarm
2017-08-22 11:00:43 -07:00
Anthony Romano
603f84bb6d
vendor: cockroachdb/cmux -> soheilhy/cmux
...
Official release is ahead of the fork.
2017-08-22 09:59:59 -07:00
Anthony Romano
35c5dcefc2
*: cockroachdb/cmux -> soheilhy/cmux
...
Has fixes not in fork. Includes SetReadTimeout.
2017-08-22 09:59:59 -07:00
Anthony Romano
6e02779c4f
integration: add corruption test
2017-08-22 09:59:59 -07:00
Anthony Romano
5c611a493b
integration: grpc on etcd peer ports
2017-08-22 09:59:59 -07:00
Anthony Romano
86aeaad924
etcdmain: support experimental-corrupt-check-time flag
2017-08-22 09:59:59 -07:00
Anthony Romano
1f734e0299
embed: support experimental-corrupt-check-time flag
2017-08-22 09:59:59 -07:00
Anthony Romano
31381da53a
etcdserver: raise alarm on cluster corruption
...
Fixes #7125
2017-08-22 09:59:59 -07:00
Anthony Romano
35dffc7bc1
rpctypes,v3rpc: add Corrupt error code
2017-08-22 09:59:59 -07:00
Anthony Romano
153ba92830
embed: serve basic v3 grpc over peer port
2017-08-22 09:59:59 -07:00