https://github.com/etcd-io/etcd
Revision 9e974792f949bc21b78f0769761a103c97d145d4 authored by Wei Fu on 18 March 2023, 13:28:34 UTC, committed by Wei Fu on 20 March 2023, 12:41:49 UTC
There are two goroutines accessing the `gs` grpc server var. Before
insecure `gs` server start, the `gs` can be changed to secure server and
then the client will fail to connect to etcd with insecure request. It
is data-race. We should use argument for reference in the new goroutine.

fix: #15495

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit a9988e2625eede1af81d189b5f2ecf7d4af3edf1)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
1 parent 15b3756
History
Tip revision: 9e974792f949bc21b78f0769761a103c97d145d4 authored by Wei Fu on 18 March 2023, 13:28:34 UTC
server/embed: fix data race when start insecure grpc
Tip revision: 9e97479
File Mode Size
.github
Documentation
api
client
contrib
etcdctl
etcdutl
hack
logos
pkg
raft
scripts
security
server
tests
tools
.gitignore -rw-r--r-- 290 bytes
.header -rw-r--r-- 593 bytes
.words -rw-r--r-- 1.3 KB
CONTRIBUTING.md -rw-r--r-- 3.3 KB
DCO -rw-r--r-- 1.4 KB
Dockerfile-release.amd64 -rw-r--r-- 260 bytes
Dockerfile-release.arm64 -rw-r--r-- 260 bytes
Dockerfile-release.ppc64le -rw-r--r-- 262 bytes
Dockerfile-release.s390x -rw-r--r-- 260 bytes
GOVERNANCE.md -rw-r--r-- 3.7 KB
LICENSE -rw-r--r-- 11.1 KB
MAINTAINERS -rw-r--r-- 1.0 KB
Makefile -rw-r--r-- 18.1 KB
Procfile -rw-r--r-- 1.6 KB
Procfile.learner -rw-r--r-- 900 bytes
Procfile.v2 -rw-r--r-- 1.6 KB
README.md -rw-r--r-- 9.2 KB
ROADMAP.md -rw-r--r-- 900 bytes
bill-of-materials.json -rw-r--r-- 11.5 KB
bill-of-materials.override.json -rw-r--r-- 254 bytes
build -rwxr-xr-x 117 bytes
build.bat -rwxr-xr-x 51 bytes
build.ps1 -rw-r--r-- 2.7 KB
build.sh -rwxr-xr-x 3.9 KB
code-of-conduct.md -rw-r--r-- 143 bytes
codecov.yml -rw-r--r-- 482 bytes
dummy.go -rw-r--r-- 1.0 KB
etcd.conf.yml.sample -rw-r--r-- 3.6 KB
go.mod -rw-r--r-- 3.8 KB
go.sum -rw-r--r-- 53.1 KB
test -rwxr-xr-x 115 bytes
test.sh -rwxr-xr-x 22.7 KB

README.md

back to top