Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETCD-199: bump etcd v3.4.16 #83

Merged
merged 85 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
3b8f812
etcdserver: Fix PeerURL validation
dbavatar Aug 9, 2019
bea35fd
pkg/fileutil: fix F_OFD_ constants
kolyshkin Nov 3, 2020
0880605
Merge pull request #12551 from kolyshkin/3.4-fix-lock
ptabor Jan 15, 2021
becc228
vendor: bump gorilla/websocket
hexfusion Jan 23, 2021
d51c6c6
Merge pull request #12645 from hexfusion/bump-dep
hexfusion Jan 23, 2021
a40f14d
etcdserver: Fix 64 KB websocket notification message limit
vitalif Oct 19, 2020
a1c5f59
Merge pull request #12402 from vitalif/release-3.4
ptabor Feb 3, 2021
f27ef4d
[Backport-3.4] etcdserver/api/etcdhttp: log successful etcd server si…
chaochn47 Feb 9, 2021
3be9460
Merge pull request #12679 from chaochn47/backport_3.4_#12677
gyuho Feb 9, 2021
aa71268
version: 3.4.15
gyuho Feb 26, 2021
9aeabe4
server: Added config parameter experimental-warning-apply-duration
hexfusion Mar 3, 2021
afd6d8a
Merge pull request #12740 from hexfusion/cp-12448--release-3.4
hexfusion Mar 3, 2021
94634fc
etcdserver: when using --unsafe-no-fsync write data
cwedgwood Feb 22, 2021
2702f9e
Merge pull request #12751 from cwedgwood/nofsyncdowrite
ptabor Mar 7, 2021
c499d9b
integration: relax leader timeout from 3s to 4s
cwedgwood Mar 29, 2021
16fe9a8
Merge pull request #12816 from cwedgwood/3.4-relax-gate-timeout
ptabor Mar 30, 2021
30799c9
Merge pull request #12815 from dbavatar/release-3.4-peervalidation
ptabor Mar 30, 2021
656dc63
etcdserver: fix incorrect metrics generated when clients cancel watches
cwedgwood Mar 26, 2021
82eae92
Merge pull request #12803 from cwedgwood/metrics-3.4
hexfusion Apr 1, 2021
ef415e3
go.mod: Pin go to 1.12 version
lilic Apr 7, 2021
8557cb2
go.sum, go.mod: Run go mod tidy with go 1.12
lilic Apr 7, 2021
b19eb0f
vendor: Run go mod vendor
lilic Apr 7, 2021
91bed2e
pkpkg/testutil/leak.go: Allowlist created by testing.runTests.func1
lilic Apr 7, 2021
b7e5f5b
Merge pull request #12839 from lilic/fix-go-version
ptabor Apr 7, 2021
62596fa
.travis.yml: Test with go v1.15.11
lilic Apr 9, 2021
35bd924
integration,raft,tests: Comply with go v1.15 gofmt
lilic Apr 12, 2021
0b7e418
etcdserver,wal: Convert int to string using rune()
lilic Apr 12, 2021
cfc08e5
go.mod,go.sum: Comply with go v1.15
lilic Apr 12, 2021
4276c33
go.mod,go.sum: Bump github.com/creack/pty that includes patch
lilic Apr 12, 2021
eeefd61
vendor: Run go mod vendor
lilic Apr 12, 2021
df35086
integration : fix TestTLSClientCipherSuitesMismatch in go1.13
vimalk78 Sep 6, 2019
a1691be
.travis,test: Turn race off in Travis for go version 1.15
lilic Apr 13, 2021
85e037d
bill-of-materials.json: Update golang.org/x/sys
lilic Apr 14, 2021
c3f447a
Fix pkg/tlsutil (test) to not fail on 386.
ptabor Feb 8, 2021
8d1b833
pkg/tlsutil: Adjust cipher suites for go 1.12
lilic Apr 15, 2021
276ee96
integration: Fix 'go test --tags cluster_proxy --timeout=30m -v ./int…
ptabor Sep 7, 2020
c274aa5
Merge pull request #12849 from lilic/test-go-1-15
ptabor Apr 19, 2021
5890bc8
.travis,Makefile,functional: Bump go 1.12 version to v1.12.17
lilic Apr 20, 2021
ceafa1b
Merge pull request #12882 from lilic/bump-go-12
ptabor Apr 20, 2021
c4eb81a
Backport-3.4 etcdserver/util.go: reduce memory when logging range req…
chaochn47 Apr 22, 2021
ba82904
Merge pull request #12888 from chaochn47/2021-04-22-cherry-pick-12871
ptabor Apr 22, 2021
963d3b9
etcdserver/mvcc: update trace.Step condition
MakDon Apr 28, 2021
15715dc
Merge pull request #12902 from MakDon/release-3.4
gyuho Apr 28, 2021
dbde4f2
Backport-3.4 exclude alarms from health check conditionally
chaochn47 May 4, 2021
6bbc858
Merge pull request #12917 from chaochn47/2021-05-03-backport-#12880
ptabor May 6, 2021
d19fbe5
version: 3.4.16
gyuho May 12, 2021
c61959a
UPSTREAM: <drop>: pkg, clientv3, etcdmain: let grpcproxy rise an erro…
hexfusion Apr 7, 2020
dee5455
UPSTREAM: <drop>: go.mod: go 1.14
hexfusion Jul 14, 2020
5b860f4
UPSTREAM: <drop>: Backport-3.4 exclude alarms from health check condi…
hexfusion Jun 16, 2021
8c241a8
UPSTREAM: <drop> [Backport-3.4] etcdserver/api/etcdhttp: log successf…
hexfusion Jun 16, 2021
4393387
UPSTREAM: <drop>: go.mod,go.sum: Comply with go v1.15
hexfusion Jun 17, 2021
3b92125
DOWNSTREAM: <drop>: *: tidy"
hexfusion Jun 16, 2021
dca24d2
DOWNSTREAM: <drop>: vendor: tidy
hexfusion Jun 17, 2021
8aa68eb
DOWNSTREAM: <carry>: version: openshift-v4.0
hexfusion Nov 29, 2018
3e84f17
DOWNSTREAM: <carry>: Dockerfile: add etcdctl
hexfusion Feb 20, 2019
9a2013e
DOWNSTREAM: <carry>: Dockerfile.*: Fix "etcd is distributed" -> "etcd…
wking Feb 7, 2019
f1bbacb
DOWNSTREAM: <carry> Dockerfile: resolve issue where binary was not pr…
hexfusion Feb 20, 2019
70bfd8e
DOWNSTREAM: <carry>: OWNERS: add
hexfusion May 5, 2019
16caa03
DOWNSTREAM: <carry> Dockerfile: set coreos org as canonical for relea…
hexfusion May 4, 2019
c5bdc17
DOWNSTREAM: <carry>: Dockerfile: use build instead of make build
hexfusion Aug 29, 2019
749d588
DOWNSTREAM: <carry>: Dockerfile: bump golang 1.12
hexfusion Sep 23, 2019
6e97204
DOWNSTREAM: <carry>: add stub discovery-etcd-initial-cluster command
deads2k Feb 20, 2020
2982541
DOWNSTREAM: <carry>: build openshift tools with etcd
deads2k Feb 20, 2020
07df352
DOWNSTREAM: <carry>: codify the initial cluster check as golang code
deads2k Feb 20, 2020
d0a16b2
DOWNSTREAM: <carry>: Archive data-dir if target member is unstarted
Feb 23, 2020
7712f19
DOWNSTREAM: <carry>: Archive data-dir if target member is unstarted
Feb 23, 2020
5a5e94b
DOWNSTREAM: <carry>: fix removed member name, unmask error
alaypatel07 Feb 27, 2020
511f3c3
DOWNSTREAM: <carry>: If we weren't able to get client or get target m…
Feb 28, 2020
5763586
DOWNSTREAM: <carry>: list all peers in initial-cluster
deads2k Mar 5, 2020
a94f8fb
DOWNSTREAM: <carry>: *: migrate openshift assets to new etcd org
hexfusion Apr 7, 2020
33b23c3
DOWNSTREAM: <carry>: make evaluation of targetMember strict
deads2k May 14, 2020
c0a35ab
DOWNSTREAM: <carry>: discover-etcd-initial-cluster: improve error han…
hexfusion Sep 30, 2020
de54531
DOWNSTREAM: <carry>: Updating ose-etcd builder & base images to be co…
jupierce Sep 30, 2020
c390140
DOWNSTREAM: <carry>: Updating ose-etcd builder & base images to be co…
jupierce Oct 7, 2020
97d2caf
DOWNSTREAM: <carry>: OWNERS: add component
hexfusion Oct 20, 2020
fc19257
DOWNSTREAM: <carry>: Updating ose-etcd builder & base images to be co…
Feb 6, 2021
0e41f96
UPSTREAM: <carry>: *: add support for socket options
hexfusion Mar 9, 2021
a4d6537
DOWNSTREAM: <carry>: openshift-tools: fix on off flow and add unit tests
hexfusion Mar 18, 2021
c235e61
UPSTREAM: <carry>: *: ensure zap logger is set before use
hexfusion Mar 31, 2021
490e5c6
UPSTREAM: <carry>: server: add support for log rotation (#12774)
hexfusion May 7, 2021
903967e
UPSTREAM: <carry>: *: log server-side /health checks
gyuho Mar 18, 2020
b10b841
UPSTREAM: <carry>: etcdserver/api/etcdhttp: log successful etcd serve…
hexfusion May 12, 2021
4312a12
DOWNSTREAM: <carry>: discover-etcd-initial-cluster: retry if member i…
hexfusion May 12, 2021
162058e
DOWNSTREAM: <carry>: Updating ose-etcd images to be consistent with ART
Jun 16, 2021
0956f6d
DOWNSTREAM: <carry>: vendor: tidy
hexfusion Jun 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ sudo: required
services: docker

go:
- 1.12.12
- 1.12.17
- 1.15.11

notifications:
on_success: never
Expand All @@ -27,10 +28,23 @@ env:
matrix:
fast_finish: true
allow_failures:
- go: 1.12.12
- go: 1.12.17
env: TARGET=linux-amd64-grpcproxy
- go: 1.12.12
- go: 1.12.17
env: TARGET=linux-386-unit
exclude:
- go: 1.15.11
env: TARGET=linux-amd64-integration-1-cpu
- go: 1.15.11
env: TARGET=linux-amd64-integration-2-cpu
- go: 1.15.11
env: TARGET=linux-amd64-unit-4-cpu-race
- go: 1.15.11
env: TARGET=linux-amd64-coverage
- go: 1.15.11
env: TARGET=linux-amd64-fmt-unit-go-tip-2-cpu
- go: 1.15.11
env: TARGET=linux-386-unit-1-cpu

before_install:
- if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi
Expand All @@ -40,6 +54,7 @@ install:

script:
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
- RACE='true'; if [[ $TRAVIS_GO_VERSION == 1.15.11 ]]; then echo 'setting race off'; RACE='false'; fi
- >
case "${TARGET}" in
linux-amd64-fmt)
Expand All @@ -50,27 +65,27 @@ script:
linux-amd64-integration-1-cpu)
docker run --rm \
--volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
/bin/bash -c "GOARCH=amd64 CPU=1 PASSES='integration' ./test"
/bin/bash -c "GOARCH=amd64 CPU=1 PASSES='integration' RACE='${RACE}' ./test"
;;
linux-amd64-integration-2-cpu)
docker run --rm \
--volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
/bin/bash -c "GOARCH=amd64 CPU=2 PASSES='integration' ./test"
/bin/bash -c "GOARCH=amd64 CPU=2 PASSES='integration' RACE='${RACE}' ./test"
;;
linux-amd64-integration-4-cpu)
docker run --rm \
--volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
/bin/bash -c "GOARCH=amd64 CPU=4 PASSES='integration' ./test"
/bin/bash -c "GOARCH=amd64 CPU=4 PASSES='integration' RACE='${RACE}' ./test"
;;
linux-amd64-functional)
docker run --rm \
--volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
/bin/bash -c "./build && GOARCH=amd64 PASSES='functional' ./test"
/bin/bash -c "./build && GOARCH=amd64 PASSES='functional' RACE='${RACE}' ./test"
;;
linux-amd64-unit)
docker run --rm \
--volume=`pwd`:/go/src/go.etcd.io/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
/bin/bash -c "GOARCH=amd64 PASSES='unit' ./test"
/bin/bash -c "GOARCH=amd64 PASSES='unit' RACE='${RACE}' ./test"
;;
all-build)
docker run --rm \
Expand All @@ -84,7 +99,7 @@ script:
&& GO_BUILD_FLAGS='-v' GOARCH=ppc64le ./build"
;;
linux-amd64-grpcproxy)
sudo HOST_TMP_DIR=/tmp TEST_OPTS="PASSES='build grpcproxy'" make docker-test
sudo HOST_TMP_DIR=/tmp TEST_OPTS="PASSES='build grpcproxy'" GO_VERSION=${TRAVIS_GO_VERSION} make docker-test
;;
linux-386-unit)
docker run --rm \
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 AS builder

WORKDIR /go/src/go.etcd.io/etcd

COPY . .

RUN ./build

# stage 2
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base

ENTRYPOINT ["/usr/bin/etcd"]

COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcdctl /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/discover-etcd-initial-cluster /usr/bin/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is a distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
maintainer="Sam Batschelet <sbatsche@redhat.com>"
20 changes: 20 additions & 0 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-8-etcd-golang-1.12 AS builder
hexfusion marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR /go/src/go.etcd.io/etcd

COPY . .

RUN ./build

# stage 2
FROM registry.ci.openshift.org/ocp/4.9:base

ENTRYPOINT ["/usr/bin/etcd"]

COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcdctl /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/discover-etcd-initial-cluster /usr/bin/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is a distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
maintainer="Sam Batschelet <sbatsche@redhat.com>"
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.PHONY: build
build:
GO_BUILD_FLAGS="-v" ./build
GO111MODULE=on GO_BUILD_FLAGS="-v -mod vendor" ./build
./bin/etcd --version
./bin/etcdctl version

Expand Down Expand Up @@ -51,7 +51,7 @@ docker-remove:



GO_VERSION ?= 1.12.12
GO_VERSION ?= 1.12.17
ETCD_VERSION ?= $(shell git rev-parse --short HEAD || echo "GitNotFound")

TEST_SUFFIX = $(shell date +%s | base64 | head -c 15)
Expand All @@ -65,11 +65,11 @@ endif


# Example:
# GO_VERSION=1.12.12 make build-docker-test
# GO_VERSION=1.12.17 make build-docker-test
# make build-docker-test
#
# gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
# GO_VERSION=1.12.12 make push-docker-test
# GO_VERSION=1.12.17 make push-docker-test
# make push-docker-test
#
# gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
Expand Down
21 changes: 5 additions & 16 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
approvers:
- heyitsanthony
- philips
- fanminshi
- gyuho
- mitake
- jpbetz
- xiang90
- hexfusion
reviewers:
- heyitsanthony
- philips
- fanminshi
- gyuho
- mitake
- jpbetz
- xiang90
- wenjiaswe
- jingyih
- deads2k
- crawford
- hexfusion
- smarterclayton
- wking
component: "Etcd"
11 changes: 10 additions & 1 deletion bill-of-materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
]
},
{
"project": "golang.org/x/sys/unix",
"project": "golang.org/x/sys",
"licenses": [
{
"type": "BSD 3-clause \"New\" or \"Revised\" License",
Expand Down Expand Up @@ -431,6 +431,15 @@
}
]
},
{
"project": "gopkg.in/natefinch/lumberjack.v2",
"licenses": [
{
"type": "MIT License",
"confidence": 1
}
]
},
{
"project": "gopkg.in/yaml.v2",
"licenses": [
Expand Down
15 changes: 15 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ etcd_build() {
-o "${out}/etcdctl" ${REPO_PATH}/etcdctl || return
}


openshift_tools_build() {
out="bin"
if [[ -n "${BINDIR}" ]]; then out="${BINDIR}"; fi
toggle_failpoints_default

# Static compilation is useful when etcd is run in a container. $GO_BUILD_FLAGS is OK
# shellcheck disable=SC2086
CGO_ENABLED=0 go build $GO_BUILD_FLAGS \
-installsuffix cgo \
-ldflags "$GO_LDFLAGS" \
-o "${out}/discover-etcd-initial-cluster" "go.etcd.io/etcd/openshift-tools/discover-etcd-initial-cluster" || return
}

tools_build() {
out="bin"
if [[ -n "${BINDIR}" ]]; then out="${BINDIR}"; fi
Expand Down Expand Up @@ -95,4 +109,5 @@ fi
# only build when called directly, not sourced
if echo "$0" | grep "build$" >/dev/null; then
etcd_build
openshift_tools_build
fi
47 changes: 36 additions & 11 deletions embed/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const (
DefaultMaxSnapshots = 5
DefaultMaxWALs = 5
DefaultMaxTxnOps = uint(128)
DefaultWarningApplyDuration = 100 * time.Millisecond
DefaultMaxRequestBytes = 1.5 * 1024 * 1024
DefaultGRPCKeepAliveMinTime = 5 * time.Second
DefaultGRPCKeepAliveInterval = 2 * time.Hour
Expand All @@ -66,6 +67,15 @@ const (
StdErrLogOutput = "stderr"
StdOutLogOutput = "stdout"

// DefaultLogRotationConfig is the default configuration used for log rotation.
// Log rotation is disabled by default.
// MaxSize = 100 // MB
// MaxAge = 0 // days (no limit)
// MaxBackups = 0 // no limit
// LocalTime = false // use computers local time, UTC by default
// Compress = false // compress the rotated log in gzip format
DefaultLogRotationConfig = `{"maxsize": 100, "maxage": 0, "maxbackups": 0, "localtime": false, "compress": false}`

// DefaultStrictReconfigCheck is the default value for "--strict-reconfig-check" flag.
// It's enabled by default.
DefaultStrictReconfigCheck = true
Expand All @@ -84,6 +94,7 @@ var (
ErrConflictBootstrapFlags = fmt.Errorf("multiple discovery or bootstrap flags are set. " +
"Choose one of \"initial-cluster\", \"discovery\" or \"discovery-srv\"")
ErrUnsetAdvertiseClientURLsFlag = fmt.Errorf("--advertise-client-urls is required when --listen-client-urls is set explicitly")
ErrLogRotationInvalidLogOutput = fmt.Errorf("--log-outputs requires a single file path when --log-rotate-config-json is defined")

DefaultInitialAdvertisePeerURLs = "http://localhost:2380"
DefaultAdvertiseClientURLs = "http://localhost:2379"
Expand Down Expand Up @@ -221,6 +232,9 @@ type Config struct {
// before closing a non-responsive connection. 0 to disable.
GRPCKeepAliveTimeout time.Duration `json:"grpc-keepalive-timeout"`

// SocketOpts are socket options passed to listener config.
SocketOpts transport.SocketOpts

// PreVote is true to enable Raft Pre-Vote.
// If enabled, Raft runs an additional election phase
// to check whether it would get enough votes to win
Expand Down Expand Up @@ -285,6 +299,9 @@ type Config struct {
ExperimentalEnableLeaseCheckpoint bool `json:"experimental-enable-lease-checkpoint"`
ExperimentalCompactionBatchLimit int `json:"experimental-compaction-batch-limit"`
ExperimentalWatchProgressNotifyInterval time.Duration `json:"experimental-watch-progress-notify-interval"`
// ExperimentalWarningApplyDuration is the time duration after which a warning is generated if applying request
// takes more time than this value.
ExperimentalWarningApplyDuration time.Duration `json:"experimental-warning-apply-duration"`

// ForceNewCluster starts a new cluster even if previously started; unsafe.
ForceNewCluster bool `json:"force-new-cluster"`
Expand All @@ -306,7 +323,10 @@ type Config struct {
// - file path to append server logs to.
// It can be multiple when "Logger" is zap.
LogOutputs []string `json:"log-outputs"`

// EnableLogRotation enables log rotation of a single LogOutputs file target.
EnableLogRotation bool `json:"enable-log-rotation"`
// LogRotationConfigJSON is a passthrough allowing a log rotation JSON config to be passed directly.
LogRotationConfigJSON string `json:"log-rotation-config-json"`
// ZapLoggerBuilder is used to build the zap logger.
ZapLoggerBuilder func(*Config) error

Expand Down Expand Up @@ -388,13 +408,16 @@ func NewConfig() *Config {
SnapshotCount: etcdserver.DefaultSnapshotCount,
SnapshotCatchUpEntries: etcdserver.DefaultSnapshotCatchUpEntries,

MaxTxnOps: DefaultMaxTxnOps,
MaxRequestBytes: DefaultMaxRequestBytes,
MaxTxnOps: DefaultMaxTxnOps,
MaxRequestBytes: DefaultMaxRequestBytes,
ExperimentalWarningApplyDuration: DefaultWarningApplyDuration,

GRPCKeepAliveMinTime: DefaultGRPCKeepAliveMinTime,
GRPCKeepAliveInterval: DefaultGRPCKeepAliveInterval,
GRPCKeepAliveTimeout: DefaultGRPCKeepAliveTimeout,

SocketOpts: transport.SocketOpts{},

TickMs: 100,
ElectionMs: 1000,
InitialElectionTickAdvance: true,
Expand All @@ -420,14 +443,16 @@ func NewConfig() *Config {

PreVote: false, // TODO: enable by default in v3.5

loggerMu: new(sync.RWMutex),
logger: nil,
Logger: "capnslog",
DeprecatedLogOutput: []string{DefaultLogOutput},
LogOutputs: []string{DefaultLogOutput},
Debug: false,
LogLevel: logutil.DefaultLogLevel,
LogPkgLevels: "",
loggerMu: new(sync.RWMutex),
logger: nil,
Logger: "capnslog",
DeprecatedLogOutput: []string{DefaultLogOutput},
LogOutputs: []string{DefaultLogOutput},
Debug: false,
LogLevel: logutil.DefaultLogLevel,
LogPkgLevels: "",
EnableLogRotation: false,
LogRotationConfigJSON: DefaultLogRotationConfig,
}
cfg.InitialCluster = cfg.InitialClusterFromName(cfg.Name)
return cfg
Expand Down
Loading