Gyuho Lee
8cb8d2c017
CHANGELOG: update v3.3.0, add v3.4.0
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-09 12:10:15 -08:00
Gyuho Lee
1e488f3548
Merge pull request #9124 from gyuho/snapshot-restore
...
ctlv3: add "snapshot restore --wal-dir"
2018-01-09 11:11:59 -08:00
Gyuho Lee
285a83d70a
ctlv3: add "snapshot restore --wal-dir"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-09 09:25:26 -08:00
Sahdev P. Zala
3b7e2ce0ca
StatusFromError: handle return value of the function
...
status.FromError can return nil, false. We are handling the return values
most places in code but some places we aren't. Fixing it herewith.
Fixes #9117
2018-01-08 22:28:20 -05:00
Gyuho Lee
9bd9d2041f
Merge pull request #9122 from gyuho/temp
...
raft: fix wrong comments in "mustCheckOutOfBounds"
2018-01-08 18:34:29 -08:00
GhostComputing
b3916a393f
raft: fix wrong comments in "mustCheckOutOfBounds"
2018-01-08 18:31:22 -08:00
Xiang Li
ed1ff9e952
Merge pull request #9073 from bdarnell/pending-conf-index
...
raft: Avoid scanning raft log in becomeLeader
2018-01-08 16:37:36 -08:00
Gyuho Lee
a1d3456641
Merge pull request #9119 from yudai/panic_defrag_fail
...
mvcc: check null before set FillPercent not to panic
2018-01-08 12:48:48 -08:00
Iwasaki Yudai
0b1b82aff2
mvcc: check null before set FillPercent not to panic
...
Since CreateBucketIfNotExists() can return nil when it gets an error,
accessing FillPercent must be done after a nil check, not to cause
a panic.
2018-01-08 11:34:34 -08:00
Gyuho Lee
31c2d4b0a2
clientv3: document possible memory pile-up in Watch
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-08 10:37:47 -08:00
Xiang Li
44e1f6f019
Merge pull request #9105 from spzala/getrevision
...
etcdserver/api/v3rpc: debug user cancellation and log warning for rest
2018-01-08 10:07:57 -08:00
Sahdev P. Zala
a66d7c3ba5
etcdserver/api/v3rpc: debug user cancellation and log warning for rest
...
The context error with cancel code is typically for user cancellation which
should be at debug level. For other error codes we should display a warning.
Fixes #9085
2018-01-08 11:03:13 -05:00
Xiang Li
6f76e46c0c
Merge pull request #9108 from Quentin-M/embed_ext_metrics
...
embed: enable extensive metrics if specified
2018-01-07 08:44:02 -08:00
Quentin MACHU
a535c01050
embed: enable extensive metrics if specified
2018-01-06 20:40:30 +01:00
Gyuho Lee
65464838ba
Merge pull request #9065 from gyuho/watch-id-2
...
*: allow user-provided watch ID to mvcc
2018-01-05 15:08:10 -08:00
Gyuho Lee
2fb9728473
Merge pull request #9100 from gyuho/flag
...
etcdmain: unset ETCD_UNSUPPORTED_ARCH after arch check
2018-01-04 17:03:35 -07:00
Gyuho Lee
936c4745c1
etcdmain: unset ETCD_UNSUPPORTED_ARCH after arch check
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-04 22:47:59 +00:00
Gyuho Lee
872fd9d42a
Merge pull request #9101 from ericchiang/coc
...
automated PR: update CoC
2018-01-04 15:44:40 -07:00
Eric Chiang
2395f8e81c
CODE_OF_CONDUCT: update CoC
2018-01-04 22:44:07 +00:00
Gyuho Lee
a7d387cc42
Merge pull request #9093 from spzala/getrevision
...
DocCommand: use regex wildcard
2018-01-03 23:52:56 -08:00
Sahdev P. Zala
526f3c1f5f
DocCommand: use regex wildcard
...
The current command as such produces no output on mac term or bash shell.
Using regex wildcard works fine on mac and linux.
2018-01-03 21:46:38 -05:00
Gyuho Lee
6915a718b9
Merge pull request #9090 from gyuho/fix
...
clientv3/integration: fix typos
2018-01-03 17:31:32 -08:00
Gyuho Lee
7b4fc2601c
clientv3/integration: fix typos
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-03 17:26:43 -08:00
Gyuho Lee
a069799810
Merge pull request #9005 from hexfusion/fx_test_const
...
integration: add constant requestWaitTimeout.
2018-01-03 14:48:00 -08:00
Sam Batschelet
d21fef2d41
integration: add constant RequestWaitTimeout.
2018-01-03 15:53:57 -05:00
Xiang Li
17ce61bd0d
Merge pull request #9088 from nvanbenschoten/nvanbenschoten/leaner
...
raft: s/leaner/learner/g
2018-01-03 08:41:53 -08:00
Nathan VanBenschoten
e6dc57f708
raft: s/leaner/learner/g
2018-01-03 08:16:50 -05:00
Xiang Li
664f9bd5ba
Merge pull request #9082 from spzala/checkperf
...
Doc: Create doc for etcdctl check perf command
2018-01-02 21:32:56 -08:00
Sahdev P. Zala
d11c687803
Doc: create doc for check perf command
...
Create a doc for check commands with perf subcommand.
Fixes #9072
2018-01-02 20:22:55 -05:00
Gyuho Lee
c699470d3b
Merge pull request #9074 from gyuho/expect
...
pkg/expect: fix deadlock in macOS
2018-01-02 14:00:12 -08:00
Gyuho Lee
bdf6e85604
Merge pull request #9084 from gyuho/changelog
...
CHANGELOG: add v3.2.13, v3.3.0-rc.1
2018-01-02 13:38:56 -08:00
Gyuho Lee
b78c51ae9f
CHANGELOG: add v3.2.13, v3.3.0-rc.1
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 13:21:28 -08:00
Gyuho Lee
14ec0673e1
Merge pull request #9083 from gyuho/proxy-grpc-msg-size
...
clientv3/integration: fix TestKVLargeRequests with -tags cluster_proxy
2018-01-02 11:08:16 -08:00
Gyuho Lee
916d9db5b9
Merge pull request #9080 from gyuho/log-debug
...
etcdserver: log stream error with debug level, silence gRPC server info level logs
2018-01-02 11:01:16 -08:00
Gyuho Lee
e567d94fc2
tools/functional-tester: remove duplicate grpclog set
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 11:00:42 -08:00
Gyuho Lee
806ff6dff9
clientv3/integration: fix TestKVLargeRequests with -tags cluster_proxy
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 10:50:29 -08:00
Gyuho Lee
5b2f5150d9
etcdserver/api/v3rpc: set grpclog once
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 10:12:49 -08:00
Gyuho Lee
9e11ef3ad5
etcdserver,embed: discard gRPC info logs when debug is off
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 09:29:07 -08:00
Gyuho Lee
9a50255515
etcdserver/api/v3rpc: log stream error with debug level
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-02 07:44:07 -08:00
Xiang Li
e6a46a0ca6
Merge pull request #9076 from spzala/rangeend
...
README: range-end is not a flag and should not be used
2018-01-01 22:35:55 -08:00
Sahdev P. Zala
f6f4589853
README: range-end is not a flag and should not be used
...
As README declares in the beginning, flags can have dash and it should be
replaced with underscore while using. Also flags or commands are emphasized
in general. The range-end is not a flag or valid doc word and should not be
used as such.
2018-01-01 22:51:04 -05:00
Gyuho Lee
b2a15ec327
pkg/expect: fix deadlock in mac OS
...
bufio.NewReader.ReadString blocks even
when the process received syscall.SIGKILL.
Remove ptyMu mutex and make ReadString return
when *os.File is closed.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-01 17:34:59 -08:00
Gyuho Lee
10522f88f5
clientv3: handle non -1 watch ID on cancellation
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 17:43:28 -08:00
Gyuho Lee
33c732b97c
api/v3rpc: add watch ID to "watchStream.Watch"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:41 -08:00
Gyuho Lee
82a164e3b9
mvcc: make test struct fields unexported
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:41 -08:00
Connor Peet
fc3b59046f
mvcc: allow clients to assign watcher IDs
...
This allows for watchers to be created concurrently
without needing potentially complex and latency-adding
queuing on the client.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:40 -08:00
Gyuho Lee
652841c411
*: regenerate proto
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:40 -08:00
Gyuho Lee
7800fd9fff
scripts/genproto: require protoc 3.5.1
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:40 -08:00
Gyuho Lee
9bbfa23183
etcdserverpb: add "watch_id" to "WatchCreateRequest"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-31 13:20:40 -08:00
Ben Darnell
8d8f3195e4
raft: Avoid scanning raft log in becomeLeader
...
Scanning the uncommitted portion of the raft log to determine whether
there are any pending config changes can be expensive. In
cockroachdb/cockroach#18601 , we've seen that a new leader can spend so
much time scanning its log post-election that it fails to send
its first heartbeats in time to prevent a second election from
starting immediately.
Instead of tracking whether a pending config change exists with a
boolean, this commit tracks the latest log index at which a pending
config change *could* exist. This is a less expensive solution to
the problem, and the impact of false positives should be minimal since
a newly-elected leader should be able to quickly commit the tail of
its log.
2017-12-30 10:13:36 -05:00