backport https://github.com/etcd-io/etcd/pull/15924 to 3.4 Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>