6c2f5dc78a
Merge pull request #13405 from serathius/downgrade-b
...
Implement single node downgrades
2021-10-29 23:22:10 +02:00
9c28e07588
Merge pull request #13447 from Juneezee/deprecate-ioutil
...
*: move from io/ioutil to io and os packages
2021-10-29 23:18:36 +02:00
9d47a97b0b
server: Remove lock from adapter to avoid deadlock
2021-10-29 12:47:19 +02:00
431adc5878
server: Implement storage downgrades
...
By validating if WAL doesn't include any incompatible entries we can
implement storage downgrades.
2021-10-29 12:47:19 +02:00
335dc98c8d
server: Use server version to decide if to downgrade has finished
2021-10-29 12:47:19 +02:00
f5d71fa389
server: Detect when WAL includes unapplied cluster version set to higher version
...
This is because etcd v3.5 will panic when it encounters
ClusterVersionSet entry with version >3.5.0. For downgrades to v3.5 to
work we need to make sure this entry is snapshotted.
2021-10-29 12:47:19 +02:00
758fc0f8ad
server: Depend only on cluster version to detect downgrade
...
Problem with old code was that during downgrade only members with
downgrade target version were allowed to join. This is unrealistic as
it doesn't handle any members to disconnect/rejoin.
2021-10-29 12:47:17 +02:00
316e62b4e1
*: fixup go 1.17 bump
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com >
2021-10-27 14:26:55 -04:00
2a151c8982
*: move from io/ioutil to io and os packages
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-10-28 00:05:28 +08:00
3b1ecc4cbe
Merge pull request #13412 from Jille/known-peers-metric
...
etcdserver: Expose metrics with all known peers
2021-10-25 10:08:33 -04:00
7b6554fd30
non mutating requests pass through quotaKVServer when NOSPACE
2021-10-22 16:36:37 -07:00
8aa6ae9bbb
Merge pull request #13361 from vooon/otel-1.0.0
...
server: update OpenTelemetry to 1.0.1
2021-10-20 14:14:00 +02:00
691dcd51f6
Merge pull request #13339 from ardaguclu/support-zap-console-encoding
2021-10-20 05:39:43 -04:00
9038e65359
scripts/genproto.sh: fix module path of wal proto files
2021-10-15 22:00:16 -07:00
4f4b12d521
server: update OpenTelemetry to 1.0.1
...
Update API of the OpenTelemetry library and updates gRPC to 1.41.0.
Fixes #13141
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com >
2021-10-13 13:51:58 +03:00
923f0aa3e7
etcdserver: Expose metrics with all known peers
...
To make it possible to alert on misconfigured etcd clusters that have
missing/superfluous peers, expose the list of peers as a metric.
This metric can, for example, be compared to the control-plane nodes of
a kubernetes cluster.
2021-10-09 14:27:10 +02:00
5b226e0abf
Merge pull request #13391 from serathius/downgrade-refactor
...
Refactor code to make place for downgrade logic
2021-10-08 12:38:25 +02:00
f92b4f9a28
server: Integrate version validation logic into tests
2021-10-08 12:01:54 +02:00
620832a4a5
server: Use panic instead of os.Exit in mustDetectDowngrade
2021-10-08 12:01:54 +02:00
d039f016c5
server: Move Storage interface to storage package
2021-10-08 12:01:53 +02:00
703df1c491
server: Move wal versioning functions to wal package
2021-10-08 12:01:53 +02:00
e47c3c22d2
server: Move downgrade API logic into version package
2021-10-08 12:01:51 +02:00
1e5e57f268
server: Move downgrade detection code to version package
2021-10-08 10:41:37 +02:00
378159af30
server: Refactor cluster version decision code
2021-10-08 10:41:37 +02:00
2de36c0596
server: Cover monitor with upgrade unit tests
2021-10-08 10:41:35 +02:00
d7fa8022e6
Merge branch 'main' into support-zap-console-encoding
2021-10-08 11:00:57 +03:00
3644c9d67b
client/pkg/fileutil: add missing logger to {Create,Touch}DirAll
...
Also populate it to every invocation.
2021-10-07 17:53:59 +03:00
b571ec5e67
Merge pull request #13371 from geetasg/main
...
storage/backend: Add a gauge to indicate if defrag is active
2021-10-05 11:01:49 -07:00
90932324b1
client: Add grpc authority header integration tests
2021-09-29 12:42:16 +02:00
817d2f40d1
storage/backend: Add a gauge to indicate if defrag is active
2021-09-27 17:02:13 -07:00
752a206da4
Merge pull request #13238 from sakateka/etcdserver-logs
...
etcdserver: remove code duplication from the peer.send func
2021-09-27 09:01:34 +02:00
ca5bad0e83
Merge pull request #13261 from njhill/sorting
...
etcdserver,clientv3: server-side ignore sort-ascend-key for range reqs
2021-09-25 17:47:10 +02:00
183cc52bc3
Merge pull request #13230 from serathius/storage
...
Move storage bootstrap to its package
2021-09-25 17:34:30 +02:00
e7a09db019
mvcc: simplify watchable_store addVictim code
2021-09-24 17:49:03 +08:00
ec252d06c9
Return error when log-format is invalid
2021-09-22 19:45:08 +03:00
e647995a38
Add zap encoding configurable
...
Json encoding is the default zap encoding value and can not be changeable.
This PR enables configuring zap encoding to console via new flag `log-format`.
2021-09-22 15:48:47 +03:00
35db0a5817
server: Refactor databaseFileMissing function
2021-09-20 12:21:36 +02:00
39f92a32ca
server: Move member dir creation up and introduce Close method to bootstrap structs
2021-09-20 12:21:36 +02:00
a206ad2c96
server: Rename GetIDs to GetEffectiveNodeIDsFromWalEntries
2021-09-20 12:21:36 +02:00
a450dc7f91
server: Rename function to NewConfigChangeEntries indicating we are not reading it from wal
2021-09-20 12:21:36 +02:00
4884e7d8cf
server: Move wal bootstrap from cluster to storage
2021-09-20 12:21:35 +02:00
d3abf774ea
server: Move cluster backend setting up the call hierarchy
2021-09-20 12:20:21 +02:00
049e2d6ec0
server: Move raft up the bootstrap hierarchy
2021-09-20 12:20:19 +02:00
138afa5be9
server: Split wal, cluster and raft bootstraping
2021-09-20 12:19:10 +02:00
5d044563a8
server: Move raft and wal up the bootstrap hierarchy
2021-09-20 12:19:10 +02:00
8b0d8ea2af
server: Move cluster up the bootstrap hierarchy
2021-09-20 12:19:09 +02:00
7c8f7166e7
server: Move bootstraping backend from snapshot to bootstrapBackend
2021-09-20 12:17:33 +02:00
0211f5a2e8
server: Move snapshot recovery to separate function
2021-09-20 12:07:42 +02:00
c97ab8f5e0
server: Move cluster up the bootstrap hierarchy
2021-09-20 12:07:41 +02:00
648bac833f
server: Move bootstrappedRaft up in file
2021-09-20 12:06:19 +02:00