Skip to content

Failed to create PD client for PD v6.5/v6.6 #6243

@sleepymole

Description

@sleepymole

Bug Report

What did you do?

Create PD client for PD v6.5/v6.6 using the following function.

func NewClientWithContext(ctx context.Context, svrAddrs []string, security SecurityOption, opts ...ClientOption) (Client, error) {

What did you expect to see?

Everything is ok.

What did you see instead?

An error encountered:

[pd] failed to get cluster id

Root cause:

return errors.WithStack(errFailInitClusterID)

What version of PD are you using (pd-server -V)?

pd-server: v6.6.0
Test codes is based TiDB repo:
github.com/tikv/pd/client v0.0.0-20230329032054-05f86a47e154
https://github.com/pingcap/tidb/blob/4d50a1d9293e934244d46eeb621290565f29391e/go.mod#L97

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions