17128 Commits

Author SHA1 Message Date
Gyuho Lee
eca086e282
Merge pull request #13090 from wilsonwang371/rw-heatmaps-bugfix
tools: rw-heatmaps output format bug fix
2021-06-06 19:34:17 -07:00
Wilson Wang
0d2dd291bd tools: rw-heatmaps output format bug fix 2021-06-06 14:58:49 -07:00
Gyuho Lee
94ae8ee78c
Merge pull request #13089 from wilsonwang371/separate-rw 2021-06-05 23:28:23 -07:00
Wilson Wang
8a0142c8b1 server: enable getting raft request from cache to avoid extra unmarshalling 2021-06-05 17:37:01 -07:00
Gyuho Lee
23e6bf3671
Merge pull request #13083 from lilic/add-downgrade-client
client/v3/maintenance.go: Add Downgrade support to client
2021-06-04 15:31:48 -07:00
Gyuho Lee
1e18cebcff
Merge pull request #13087 from dlowe/changelog-it-up
CHANGELOG: etcdserver: don't attempt to grant nil permission to a role
2021-06-04 15:26:08 -07:00
J. David Lowe
5f73afb256 CHANGELOG: etcdserver: don't attempt to grant nil permission to a role 2021-06-04 15:17:48 -07:00
Gyuho Lee
ed790d9639
Merge pull request #13086 from dlowe/crash-on-missing-permission
etcdserver: don't attempt to grant nil permission to a role
2021-06-04 15:13:20 -07:00
J. David Lowe
115c694af6 etcdserver: don't attempt to grant nil permission to a role
Prevent etcd from crashing when given a bad grant payload, e.g.:

$ curl -d '{"name": "foo"}' http://localhost:2379/v3/auth/role/add
{"header":{"cluster_id":"14841639068965178418", ...
$ curl -d '{"name": "foo"}' http://localhost:2379/v3/auth/role/grant
curl: (52) Empty reply from server
2021-06-04 14:20:02 -07:00
Gyuho Lee
9b03d36ffb
Merge pull request #13084 from dlowe/crash-on-missing-alarm-type
etcdserver: don't activate alarm w/missing AlarmType
2021-06-04 14:19:47 -07:00
J. David Lowe
a26fa0c008 CHANGELOG: etcdserver: don't activate alarm w/missing AlarmType 2021-06-04 12:19:06 -07:00
J. David Lowe
8552d8ec20 etcdserver: don't activate alarm w/missing AlarmType
Narrowly prevent etcd from crashing when given a bad ACTIVATE payload, e.g.:

$ curl -d "{\"action\":\"ACTIVATE\"}" ${ETCD}/v3/maintenance/alarm
curl: (52) Empty reply from server
2021-06-04 12:18:56 -07:00
Lili Cosic
d563c76e92 client/v3/maintenance.go: Add Downgrade support to client 2021-06-04 13:53:09 +02:00
Piotr Tabor
b00803a9c1
Merge pull request #13071 from serathius/genproto
tests: Switch regenerating functional/rpcpb proto to scripts/genproto.sh
2021-06-04 13:30:02 +02:00
Piotr Tabor
852fae73ae
Merge pull request #13082 from wilsonwang371/main_stable
tools: update mixed read/write perf testing script for a larger range of value size
2021-06-04 13:29:31 +02:00
Wilson Wang
fe2c05275b tools: update mixed read/write perf testing script for a larger range of value size 2021-06-03 22:46:47 -07:00
Gyuho Lee
57034e1b51
Merge pull request #13075 from wilsonwang371/no-unnecessary-proto_size
server: skip unnecessary sprintf which executes proto.Size()
2021-06-03 13:10:11 -07:00
Wilson Wang
11edc76b15 server: skip unnecessary sprintf which executes proto.Size() 2021-06-03 12:58:42 -07:00
Piotr Tabor
e32e91c791
Merge pull request #13078 from ptabor/20210604-modules-main
Update of dependencies in go.mod: zap, bbolt, grpc, ...
2021-06-03 16:28:33 +02:00
Piotr Tabor
404efd70f7 Upgrade of prometheous deps.
For now we need to depend on unstable: prometheus/client_golang
2021-06-03 16:07:01 +02:00
Piotr Tabor
edcfe575cf Update dependencies:
- github.com/coreos/go-systemd/v22 v22.3.2
  - github.com/google/btree v1.0.1
  - github.com/json-iterator/go v1.1.11
  - github.com/mattn/go-runewidth v0.0.13
  - github.com/prometheus/client_golang v1.10.0
  - github.com/prometheus/common v0.26.0
  - github.com/sirupsen/logrus v1.8.1
2021-06-03 13:03:01 +02:00
Piotr Tabor
b240625d21 Update bbolt to v1.3.6.
`./scripts/update_dep.sh go.etcd.io/bbolt v1.3.6`
2021-06-03 12:39:53 +02:00
Piotr Tabor
90cea7d4e7 Update zap to v1.17.0. 2021-06-03 12:37:43 +02:00
Gyuho Lee
af6f3dcba5
Merge pull request #13074 from wilsonwang371/rw-bm-bugfix
tools: fix small rw-heatmaps python plot script argument parsing bug
2021-06-02 13:59:48 -07:00
Wilson Wang
d3ae6f25dd tools: fix small rw-heatmaps python plot script argument parsing bug
(cherry picked from commit 5b6b3ffe0b9fca7c72edfc2218e98357d1152872)
2021-06-02 13:32:02 -07:00
Piotr Tabor
bd475d8731
Merge pull request #13062 from nate-double-u/13050-genproto-updates
updating scripts/genproto.sh
2021-06-02 20:15:05 +02:00
Nate W
9e4dd4dc4e updating scripts/genproto.sh
Changing API-reference generator

- matching changes mentioned in https://github.com/etcd-io/website/issues/330
- generating page frontmater
- updating .gitignore

Signed-off-by: Nate W <4453979+nate-double-u@users.noreply.github.com>
2021-06-02 10:29:35 -07:00
Piotr Tabor
573e055cd3
Merge pull request #13069 from lilic/log-errors
client, raft: Log unhandled errors
2021-06-02 18:05:58 +02:00
Piotr Tabor
c16805a635
Merge pull request #13072 from lilic/3.5-client
client/v3/README.md: Remove warning
2021-06-02 18:05:25 +02:00
Marek Siarkowicz
af5cf1ac1c tests: Switch regenerating functional/rpcpb proto to scripts/genproto.sh 2021-06-02 16:42:35 +02:00
Lili Cosic
3aae7d7823 client/v3/README.md: Remove warning 2021-06-02 16:35:12 +02:00
Lili Cosic
ddd390af01 raft/raft.go: Log unhandled errors 2021-06-02 11:41:26 +02:00
Lili Cosic
5e67b40a9e raft/node.go: Log unhandled errors 2021-06-02 11:41:26 +02:00
Lili Cosic
65cdf43e48 client/v3/lease.go: Log unhandled errors 2021-06-02 11:41:26 +02:00
Piotr Tabor
4c6c506575
Merge pull request #13063 from serathius/integration-defer
integration: Use subtests to defer cluster.Terminate call
2021-06-01 17:19:05 +02:00
Piotr Tabor
c15af6df03
Merge pull request #13058 from ptabor/20210531-functional-test-logging
Improve output of the 'functional' tests
2021-06-01 16:09:03 +02:00
Marek Siarkowicz
d669eb038d integration: Use subtests to defer cluster.Terminate call
This fixes cases where Terminate is not called due to t.Fatal call
2021-06-01 15:59:02 +02:00
Piotr Tabor
0edb69ae55
Merge pull request #13060 from serathius/limit
etcdserver:  Fix invalid count returned on Range with Limit
2021-06-01 15:56:29 +02:00
Marek Siarkowicz
182aef6e6b etcdserver: Fix invalid count returned on Range with Limit 2021-06-01 15:04:28 +02:00
Piotr Tabor
ea8b9e6c18 Improve output of the 'functional' tests
- Use go testing infrastructure, such that logs are printed only in
case of failure.
 - Split the test into multiple sub-round and sub-round-testcases such
   that tree of execution reflects the logic.
 - Use 'development' loggers that are formatting the output to be human
readable.
2021-05-31 15:31:48 +02:00
Piotr Tabor
c7cbc6befa
Merge pull request #13027 from lilic/benchmark-readme
tools/benchmark/README.md: Update installation as go get does not work
2021-05-31 10:37:49 +02:00
Lili Cosic
312908c068 tools/benchmark/README.md: Update installation as go get does not work 2021-05-31 10:25:37 +02:00
Piotr Tabor
71448cb516
Merge pull request #13052 from ptabor/20210527-before-test-public
integration.BeforeTest can be run without leak-detection.
2021-05-30 23:20:02 +02:00
Piotr Tabor
004081cc08
Merge pull request #13045 from wilsonwang371/add-benchmark-param
tool: save test parameters in mixed read/write benchmark script.
2021-05-27 20:56:11 +02:00
Piotr Tabor
f15e0b8237 integration.BeforeTest can be run without leak-detection. 2021-05-27 20:55:11 +02:00
Wilson Wang
8389ab8751 tool: save test parameters in mixed read/write benchmark script. 2021-05-26 20:38:49 -07:00
Piotr Tabor
71934ff244
Merge pull request #13010 from ipixiu/imp/store-scheduleCompaction-lock
limit tx lock scope in store.scheduleCompaction
2021-05-26 08:51:44 +02:00
Piotr Tabor
db556c11b2
Merge pull request #13042 from wilsonwang371/no-hardcoded-repeat
tools: no hardcoded repeat times in rw-benchmark scripts
2021-05-26 08:36:10 +02:00
Wilson Wang
2ab2b4035c tools: no hardcoded repeat times in rw-benchmark scripts 2021-05-25 15:43:46 -07:00
Gyuho Lee
adecd73975
Merge pull request #13039 from ptabor/20210525-make-logger-public
Expose clientv3.CreateDefaultZapLoggerConfig
2021-05-25 14:42:42 -07:00