Xiang Li
535064924c
etcdctlv3: make PUT command clean and documented
2016-02-18 07:46:05 -08:00
Gyu-Ho Lee
6bfd45a83e
Merge pull request #4548 from gyuho/plog
...
functional-tester: plog for milli-second timestamp
2016-02-17 18:43:10 -08:00
Gyu-Ho Lee
7aa62ec595
functional-tester: plog for milli-second timestamp
...
Standard log package by default only prints out the second-scale
so the 3rd party log feeder mixes the order of the events, which makes
the debugging hard. This replaces it with capnslog and make them consistent
with all other etcd log formats.
2016-02-17 18:39:05 -08:00
Gyu-Ho Lee
40d3e0daff
Merge pull request #4547 from gyuho/timeout
...
etcd-tester: 10-second timeout for stressers
v2.3.0-alpha.1
2016-02-17 15:44:30 -08:00
Gyu-Ho Lee
239a6d89c5
etcd-tester: 10-second timeout for stressers
...
For https://github.com/coreos/etcd/issues/4477 .
2016-02-17 15:44:05 -08:00
Anthony Romano
ef2d3feca6
Merge pull request #4528 from heyitsanthony/fix-watchcurrev
...
fix several watcher races
2016-02-17 14:26:33 -08:00
Xiang Li
6b3fa6aa72
Merge pull request #4546 from xiang90/batch
...
rafthttp: smart batching
2016-02-17 14:05:11 -08:00
Anthony Romano
155412bbfa
integration: overlapped create and put v3 watcher test
2016-02-17 14:03:52 -08:00
Anthony Romano
af225e7433
v3rpc: don't race on current watcher header revision
2016-02-17 14:03:52 -08:00
Anthony Romano
2cbf7cf6d1
storage: do not send outdated events to unsynced watchers
2016-02-17 14:03:51 -08:00
Xiang Li
e4f22cd6d8
rafthtt: smart batching
...
Improved the overall performance more than 20% under heavyload
with little latency impact
heavy load
```
Requests/sec: ~23200 vs Requests/sec: ~31500
Latency distribution:
10% in 0.0883 secs.
25% in 0.1022 secs.
50% in 0.1207 secs.
75% in 0.1460 secs.
90% in 0.1647 secs.
95% in 0.1783 secs.
99% in 0.2223 secs.
vs
Latency distribution:
10% in 0.1119 secs.
25% in 0.1272 secs.
50% in 0.1469 secs.
75% in 0.1626 secs.
90% in 0.1765 secs.
95% in 0.1863 secs.
99% in 0.2276 secs.
```
Similar on light load too.
2016-02-17 13:17:12 -08:00
Xiang Li
a4105b5cce
Merge pull request #4542 from xiang90/t
...
rafthttp: refactoring
2016-02-17 09:17:44 -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
Anthony Romano
019a145304
integration: put keys after watcher ack in TestV3WatchFromCurrentRevision
...
Watcher would miss events since the keys would be created after
sending the watcher request but before etcd registered the watcher.
2016-02-17 01:06:52 -08:00
Xiang Li
74382f56fb
rafthttp: handle short case in if statement
2016-02-16 19:26:51 -08:00
Xiang Li
d393102e24
rafthttp: refactor
2016-02-16 19:21:53 -08:00
Xiang Li
11d3e9ac69
rafthttp: better comment for streamWriter
2016-02-16 19:21:06 -08:00
Xiang Li
56318f5433
rafthttp: add necessary locking
2016-02-16 19:18:05 -08:00
Gyu-Ho Lee
976236b083
Merge pull request #4539 from xiang90/snap
...
*: record the number of bytes of snapshot sent/received
2016-02-16 16:39:22 -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
31d2bb9739
Merge pull request #4537 from gyuho/mk
...
e2e: compare output in Go string literal
2016-02-16 16:01:20 -08:00
Gyu-Ho Lee
7cae2ae2a0
e2e: compare output in Go string literal
...
I manually print out the command outputs when the issue
was reproduced, and checked they are matching when compared as
Go string literals (UTF-8), but not when compared with regex.
Fixes https://github.com/coreos/etcd/issues/4480 .
2016-02-16 13:57:49 -08:00
Gyu-Ho Lee
82c3600cfa
Merge pull request #4536 from gyuho/tidy_cleanup
...
etcd-agent: tidy cleanup before SIGKILL
2016-02-16 13:25:40 -08:00
Gyu-Ho Lee
56e3ab0943
etcd-agent: tidy cleanup before SIGKILL
...
https://github.com/golang/go/blob/master/src/os/exec_posix.go#L18 shows that
cmd.Process.Kill calls syscall.SIGKILL to the command. But
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_01.html explains
'If you send a SIGKILL to a process, you remove any chance for the process to
do a tidy cleanup and shutdown, which might have unfortunate consequences.'
This sends SIGTERM, SIGINT syscalls to the PID so that the process could
have more time to clean up the resources.
Related to https://github.com/coreos/etcd/issues/4517 .
2016-02-16 13:08:22 -08:00
Xiang Li
613a1e7fdd
Merge pull request #4535 from xiang90/mirrormaker
...
etcdctlv3: add initial mirrormaker
2016-02-16 11:34:11 -08:00
Xiang Li
f71e733b8e
etcdctlv3: add mirrormaker
2016-02-16 08:02:17 -08:00
Xiang Li
6ba9373962
clientv3/sync: fix getting empty key error
2016-02-15 22:01:11 -08:00
Xiang Li
30e4d7d6aa
Merge pull request #4532 from xiang90/ctlv3
...
etcdctlv3: refactoring
2016-02-15 20:12:04 -08:00
Xiang Li
d78cff2c4a
etcdctlv3: separate out cmd parsing logic for creating client
2016-02-15 14:44:25 -08:00
Gyu-Ho Lee
e75734aa68
Merge pull request #4529 from gyuho/govet
...
storage: shadowed err var fix at go-tip
2016-02-15 14:41:16 -08:00
Xiang Li
03a7f2e10f
etcdctlv3: secure is not HTTPS
2016-02-15 10:30:22 -08:00
Xiang Li
fe5500228a
Merge pull request #4523 from xiang90/syncer
...
*: move sync logic to clientv3/sync
2016-02-14 23:24:39 -08:00
Xiang Li
24a6abaf59
*: move sync logic to clientv3/sync
2016-02-14 22:52:34 -08:00
Gyu-Ho Lee
449c116a44
storage: shadowed err var fix at go-tip
2016-02-14 19:49:03 -08:00
Anthony Romano
0662db11ed
Merge pull request #4525 from heyitsanthony/fix-tls-proxy
...
e2e: tls proxy tests
2016-02-14 16:17:32 -08:00
Anthony Romano
1719bc0b0c
e2e: tls proxy tests
2016-02-14 00:55:07 -08:00
Anthony Romano
925629dad8
Merge pull request #4521 from heyitsanthony/fix-doublebarrierfailover
...
contrib/recipes: fix revision race in double barrier
2016-02-13 15:26:25 -08:00
Gyu-Ho Lee
20ac633059
Merge pull request #4516 from gyuho/path
...
etcd-agent: ignore error when no file to rename
2016-02-13 14:24:17 -08:00
Anthony Romano
0f7f375043
contrib/recipes: fix revision race in double barrier
...
current kv revision might be ahead of ready put event; watch using key's mod
revision instead.
Fixes #4425
2016-02-13 11:57:12 -08:00
Xiang Li
3d73e72bf6
Merge pull request #4049 from xiang90/raft_comment
...
raft: rework comment for advance interface
2016-02-13 10:22:18 -08:00
Xiang Li
cff1208005
Merge pull request #4520 from xiang90/bench
...
tools/benchmark: support serializable range benchmark
2016-02-13 09:25:24 -08:00
Xiang Li
4d0a2b4215
Merge pull request #4462 from mitake/benchmark-watch
...
tools/benchmark: revive watch benchmark
2016-02-13 09:24:00 -08:00
Xiang Li
3a9a1c7d9b
tools/benchmark: support serializable range benchmark
2016-02-13 09:23:35 -08:00
Hitoshi Mitake
99e7449f44
tools/benchmark: revive watch benchmark
...
Current watch benchmark seems to be broken. This commit revives it.
2016-02-14 01:15:04 +09:00
Gyu-Ho Lee
205033d25f
etcd-agent: ignore error when no file to rename
...
Fixes https://github.com/coreos/etcd/issues/4512 .
When cluster fails before creation of log or data directory
the file does not exist and cannot be renamed. This skips such
error because there's no need to store empty logs in failure_archive.
2016-02-12 16:37:04 -08:00
Xiang Li
c15b2a5077
Merge pull request #4514 from xiang90/tester
...
tools/functional-tester: add metrics
2016-02-12 14:45:10 -08:00
Gyu-Ho Lee
a30201c1d2
Merge pull request #4513 from gyuho/f1
...
etcd-tester: use Hash method to get both revision and hash
2016-02-12 14:44:52 -08:00
Xiang Li
1bec0e6a0b
tools/functional-tester: add metrics
2016-02-12 14:42:41 -08:00
Gyu-Ho Lee
5b2847b338
etcd-tester: use Hash method to get both revision and hash
2016-02-12 14:40:51 -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