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

The error returned by PD gRPC service is not expected #5161

Closed
Tracked by #5309
rleungx opened this issue Jun 15, 2022 · 5 comments · Fixed by #5310
Closed
Tracked by #5309

The error returned by PD gRPC service is not expected #5161

rleungx opened this issue Jun 15, 2022 · 5 comments · Fixed by #5310
Labels
affects-6.1 severity/minor type/bug The issue is confirmed as a bug.

Comments

@rleungx
Copy link
Member

rleungx commented Jun 15, 2022

Bug Report

See

return nil, status.Errorf(codes.Unknown, "invalid store ID %d, not found", storeID)

We should put the error into the header instead of directly returning a gRPC error.

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

master

@rleungx rleungx added the type/bug The issue is confirmed as a bug. label Jun 15, 2022
@mayjiang0203
Copy link

mayjiang0203 commented Jun 21, 2022

/Severity Minor

@mayjiang0203
Copy link

mayjiang0203 commented Jun 21, 2022

/severity Minor

@Connor1996
Copy link
Member

@mayjiang0203 Should we level it up to major, it may cause pd client of TiKV to reconnect again and again which greatly affects the performance

ti-chi-bot added a commit that referenced this issue Jul 21, 2022
close #5161, ref #5161

put the unknown error into the header instead of directly returning a gRPC error.

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
@rleungx rleungx reopened this Aug 10, 2022
@rleungx
Copy link
Member Author

rleungx commented Aug 10, 2022

I found there are still some errors that are not well handled.

nolouch pushed a commit to nolouch/pd that referenced this issue Jun 30, 2023
close tikv#5161, ref tikv#5161

put the unknown error into the header instead of directly returning a gRPC error.

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
nolouch pushed a commit to nolouch/pd that referenced this issue Jun 30, 2023
close tikv#5161, ref tikv#5161

put the unknown error into the header instead of directly returning a gRPC error.

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jun 30, 2023
close tikv#5161, ref tikv#5161

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jun 30, 2023
close tikv#5161, ref tikv#5161

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Jun 30, 2023
close #5161, ref #5309, ref #5310, ref pingcap/tiflash#7408

put the unknown error into the header instead of directly returning a gRPC error.

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: Hu# <jinhao.hu@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
@nolouch
Copy link
Contributor

nolouch commented Jul 4, 2023

ref pingcap/tiflash#7408

@nolouch nolouch closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants