See code changes and v3.4 upgrade guide for any breaking changes.
etcd_network_client_grpc_sent_bytes_total.etcdserver: read-only range request "key:\"\\000\" range_end:\"\\000\" " took too long [3.389041388s] to execute--auto-compaction-mode=revision --auto-compaction-retention=1000 automatically Compact on "latest revision" - 1000 every 5-minute (when latest revision is 30000, compact on revision 29000).--auto-compaction-mode=periodic --auto-compaction-retention=24h automatically Compact with 24-hour retention windown for every 2.4-hour. Now, Compact happens for every 1-hour.--auto-compaction-mode=periodic --auto-compaction-retention=30m automatically Compact with 30-minute retention windown for every 3-minute. Now, Compact happens for every 30-minute.--auto-compaction-mode=periodic --auto-compaction-retention=24h).--auto-compaction-mode=periodic --auto-compaction-retention=24h, v3.2.x, v3.3.0, v3.3.1, and v3.3.2 compact revision 2400, 2640, and 2880 for every 2.4-hour, while v3.3.3 or later compacts revision 2400, 2500, 2600 for every 1-hour.--auto-compaction-mode=periodic --auto-compaction-retention=30m and writes per minute are about 1000, v3.3.0, v3.3.1, and v3.3.2 compact revision 30000, 33000, and 36000, for every 3-minute, while v3.3.3 or later compacts revision 30000, 60000, and 90000, for every 30-minute.Lookup non-blocking with concurrent Grant/Revoke.raft.ErrProposalDropped on internal Raft proposal drop in v3 applier and v2 applier.
raftpb.MsgProp arrives at current leader while there is an ongoing leadership transfer.snapshot package for easier snapshot workflow (see godoc.org/github.com/etcd/snapshot for more).etcd --ca-file flag, instead use --trusted-ca-file (--ca-file has been deprecated since v2.1).etcd --peer-ca-file flag, instead use --peer-trusted-ca-file (--peer-ca-file has been deprecated since v2.1).pkg/transport.TLSInfo.CAFile field, instead use pkg/transport.TLSInfo.TrustedCAFile (CAFile has been deprecated since v2.1).acbuild is not maintained anymore.*.aci files are not available from v3.4 release.--advertise-client-urls=http://:2379.--initial-advertise-peer-urls=http://:2380.ETCD_NAME=abc etcd --name=def.ETCD_INITIAL_CLUSTER_TOKEN=abc etcd --initial-cluster-token=def.ETCDCTL_ENDPOINTS=abc.com ETCDCTL_API=3 etcdctl endpoint health --endpoints=def.com.etcdserverpb.AuthRoleRevokePermissionRequest/key,range_end fields type from string to bytes.embed.Config.CorsInfo in *cors.CORSInfo type to embed.Config.CORS in map[string]struct{} type.pkg/cors package."github.com/coreos/etcd/snap" to "github.com/coreos/etcd/raftsnap"."github.com/coreos/etcd/etcdserver/auth" to "github.com/coreos/etcd/etcdserver/v2auth"."github.com/coreos/etcd/error" to "github.com/coreos/etcd/etcdserver/v2error"."github.com/coreos/etcd/store" to "github.com/coreos/etcd/etcdserver/v2store".etcdctl snapshot exit codes with snapshot package.
snapshot save/restore commands).glide to golang/dep.
vendor directory under cmd/vendor directory to prevent conflicting transitive dependencies.cmd/vendor directory to vendor at repository root.cmd directory.go get/install/build on etcd packages (e.g. clientv3, tools/benchmark) enforce builds with etcd vendor directory./v3beta with /v3.
/v3alpha.google.golang.org/grpc from v1.7.5 to v1.11.1.github.com/ugorji/go/codec to v1.1.1, and regenerate v2 client.github.com/soheilhy/cmux from v0.1.3 to v0.1.4.github.com/spf13/cobra from spf13/cobra@1c44ec8d3 to spf13/cobra@cd30c2a7e.github.com/spf13/pflag from v1.0.0 to spf13/pflag@1ce0cc6db.etcd_debugging_mvcc_db_total_size_in_use_in_bytes Prometheus metric.etcd_network_peer_sent_failures_total count.etcd_debugging_server_lease_expired_total Prometheus metric.See security doc for more details.
etcd --host-whitelist flag, etcdserver.Config.HostWhitelist, and embed.Config.HostWhitelist, to prevent "DNS Rebinding" attack.
"localhost" (or any other address). Then, all HTTP endpoints of etcd server listening on "localhost" becomes accessible, thus vulnerable to DNS rebinding attacks (CVE-2018-5702)."HostWhitelist" is not empty, only allow HTTP requests whose Host field is listed in whitelist."HostWhitelist" is "*", which means insecure server allows all client HTTP requests."localhost", "127.0.0.1", etc.).etcd --host-whitelist example.com, then the server will reject all HTTP requests whose Host field is not example.com (also rejects requests to "localhost").etcd --cors in v3 HTTP requests (gRPC gateway).ttl field for etcd Authentication JWT token.
etcd --auth-token jwt,pub-key=<pub key path>,priv-key=<priv key path>,sign-method=<sign method>,ttl=5m.etcdserver.ServerConfig.AuthToken.etcd--pre-vote flag to enable to run an additional Raft election phase.
--pre-vote=false by default.--pre-vote=true by default.--initial-corrupt-check flag is now stable (--experimental-initial-corrupt-check is deprecated).
--initial-corrupt-check=true by default, to check cluster database hashes before serving client/peer traffic.--corrupt-check-time flag is now stable (--experimental-corrupt-check-time is deprecated).
--corrupt-check-time=12h by default, to check cluster database hashes for every 12-hour.--enable-v2v3 flag is now stable (--experimental-enable-v2v3 is deprecated).
--enable-v2=true --enable-v2v3='' by default, to enable v2 API server that is backed by v2 store.--enable-v2=true --enable-v2v3=/aaa to enable v2 API server that is backed by v3 storage.--enable-v2=false --enable-v2v3='' to disable v2 API server.--enable-v2=false --enable-v2v3=/aaa to disable v2 API server. TODO: error?--enable-v2=true --enable-v2v3=/aaa to enable v2 API server that is backed by v3 storage.--discovery-srv-name flag to support custom DNS SRV name with discovery.
_etcd-server-ssl._tcp.[YOUR_HOST] and _etcd-server._tcp.[YOUR_HOST].--discovery-srv-name="foo", then query _etcd-server-ssl-foo._tcp.[YOUR_HOST] and _etcd-server-foo._tcp.[YOUR_HOST].etcd --cors in v3 HTTP requests (gRPC gateway).embedembed.Config.Logger to use structured logger zap in server-side.
embed.CompactorModePeriodic for compactor.ModePeriodic.embed.CompactorModeRevision for compactor.ModeRevision.snapshot package for snapshot restore/save operations (see godoc.org/github.com/etcd/snapshot for more).watch_id field to etcdserverpb.WatchCreateRequest, allow user-provided watch ID to mvcc.
watch_id is returned via etcdserverpb.WatchResponse, if any.raftAppliedIndex field to etcdserverpb.StatusResponse for current Raft applied index.errors field to etcdserverpb.StatusResponse for server-side error.
"etcdserver: no leader", "NOSPACE", "CORRUPT"dbSizeInUse field to etcdserverpb.StatusResponse for actual DB size after compaction.etcdctlcheck datascale command.check datascale --auto-compact, --auto-defrag flags.check perf --auto-compact, --auto-defrag flags.defrag --cluster flag.endpoint status.endpoint status.endpoint health --write-out support.
endpoint health --write-out json did not work./v3beta with /v3.
/{v3beta,v3}/lease/leases, /{v3beta,v3}/lease/revoke, /{v3beta,v3}/lease/timetolive.
etcd --cors in v3 HTTP requests (gRPC gateway).raftraft.ErrProposalDropped.
(r *raft) Step returns raft.ErrProposalDropped if a proposal has been ignored.raftpb.MsgProp arrives at current leader while there is an ongoing leadership transfer.becomeLeader and stepLeader by keeping track of latest pb.EntryConfChange index.
pendingConf boolean field scanning the entire tail of the log, which can delay hearbeat send.(n *node) ApplyConfChange.mvcc "unsynced" watcher restore operation.
curl -L http://localhost:2379/v3/election/proclaim -X POST -d '{"value":""}', curl -L http://localhost:2379/v3/election/resign -X POST -d '{"value":""}'.etcd --auto-compaction-mode revision --auto-compaction-retention 1 was translated to revision retention 3600000000000.etcd --auto-compaction-mode revision --auto-compaction-retention 1 is correctly parsed as revision retention 1.TTL values for Lease Grant.
TTL parameter to Grant request is unit of second.TTL values exceeding math.MaxInt64 expire in unexpected ways.rpctypes.ErrLeaseTTLTooLarge to client, when the requested TTL is larger than 9,000,000,000 seconds (which is >285 years).Lease is meant for short-periodic keepalives or sessions, in the range of seconds or minutes. Not for hours or days!raft.Config.CheckQuorum when starting with ForceNewCluster.