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

PD:tso:ErrGenerateTimestamp errors should not appear on the application side #950

Open
yilongrong opened this issue Aug 18, 2023 · 0 comments

Comments

@yilongrong
Copy link

When upgrading a TiDB cluster, PD changes the leader. PD:tso:ErrGenerateTimestamp error will appear on application side.In fact, the PD leader switchover only took 1-2 s. Retries should be added to reduce the probability of this error occurring on application side.

[2023/08/10 04:03:48.262 +00:00] [ERROR] [client.go:857] ["[pd] getTS error"] [dc-location=global] [stream-addr=https://db-pd-2.db-pd-peer.tidbxxxxxxx.svc:2379] [error="[PD:client:ErrClientGetTSO]rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster: rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant