irfan sharif
248384a468
raft: (re-)introduce TestRecvMsgPreVote
...
TestRecvMsgPreVote was intended to be introduced in
github.com/coreos/etcd/pull/6624 but was uncapitalized (search for
testRecvMsgPreVote instead) and then subsequently removed due to it
being unused.
2017-09-01 10:45:47 -04:00
Anthony Romano
b61c7489e0
Merge pull request #8475 from heyitsanthony/mvcc-100-range
...
mvcc: don't allocate keys when computing Revisions
2017-08-31 16:42:16 -07:00
Anthony Romano
1b19a5c708
Merge pull request #8407 from heyitsanthony/v2v3
...
v2 emulation over v3
2017-08-31 16:41:45 -07:00
Anthony Romano
4c725cee26
Merge pull request #8474 from heyitsanthony/netutil-cmp
...
netutil: test schemes for URLStringsEqual
2017-08-31 13:40:17 -07:00
Anthony Romano
9d79d5fe65
mvcc: don't allocate keys when computing Revisions
2017-08-31 13:23:23 -07:00
Anthony Romano
be7d488982
mvcc: add range benchmark for fetching 100 keys
2017-08-31 13:23:23 -07:00
Anthony Romano
492bbc9659
netutil: test schemes for URLStringsEqual
...
add tests for http/https mismatch and unix scheme
2017-08-31 12:41:05 -07:00
Anthony Romano
32bfd9e5ab
test: add v2v3 store tests to integration and cov passes
2017-08-31 12:25:13 -07:00
Anthony Romano
d4b8193c55
hack/benchmark: update bench.sh to match procfile
2017-08-31 11:47:41 -07:00
Anthony Romano
e9cf07fa4d
e2e: test v2v3 emulation
2017-08-31 11:47:41 -07:00
Anthony Romano
a0adee5209
etcdmain: add command line flag to etcdmain
2017-08-31 11:47:41 -07:00
Anthony Romano
5d669290e3
embed: support experimental v2v3 proxy option
2017-08-31 11:47:41 -07:00
Anthony Romano
75eb05a272
store: test v2v3 store
...
Changes main store tests to use a timeout select instead of expecting
events to be immediately posted before returning.
2017-08-31 11:47:41 -07:00
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