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

*: fix panic in get cause error #1344

Merged
merged 5 commits into from
May 16, 2024
Merged

Conversation

crazycs520
Copy link
Contributor

close #1343

Signed-off-by: crazycs520 <crazycs520@gmail.com>
@crazycs520 crazycs520 marked this pull request as ready for review May 16, 2024 02:29
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
@MyonKeminta MyonKeminta merged commit 38e0dca into tikv:master May 16, 2024
10 checks passed
@crazycs520 crazycs520 deleted the fix-bugs00001 branch May 16, 2024 03:19
@@ -2211,7 +2222,11 @@ func (s *RegionRequestSender) onSendFail(bo *retry.Backoffer, ctx *RPCContext, r
}
}
}
metrics.TiKVRPCErrorCounter.WithLabelValues(errors.Cause(err).Error(), storeLabel).Inc()
if errStr := getErrMsg(err); len(errStr) > 0 {
metrics.TiKVRPCErrorCounter.WithLabelValues(getErrMsg(err), storeLabel).Inc()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the error message be too long?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible, but I haven't seen any error message very long yet.

Copy link
Contributor

@nolouch nolouch May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my issue origin error message is:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I think this error length is acceptable.

crazycs520 added a commit to crazycs520/client-go that referenced this pull request May 16, 2024
Signed-off-by: crazycs520 <crazycs520@gmail.com>
cfzjywxk pushed a commit that referenced this pull request May 16, 2024
Signed-off-by: crazycs520 <crazycs520@gmail.com>
crazycs520 added a commit to crazycs520/client-go that referenced this pull request May 16, 2024
Signed-off-by: crazycs520 <crazycs520@gmail.com>
cfzjywxk pushed a commit that referenced this pull request May 21, 2024
* improve region request log for diagnose

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* remove useless filed

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* use context logger as much as possible (#908)

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* add leader peer id log

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* *: fix panic in get cause error (#1344)

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* address comment

Signed-off-by: crazycs520 <crazycs520@gmail.com>

---------

Signed-off-by: crazycs520 <crazycs520@gmail.com>
nolouch pushed a commit to nolouch/client-go that referenced this pull request Sep 13, 2024
Signed-off-by: crazycs520 <crazycs520@gmail.com>
nolouch pushed a commit to nolouch/client-go that referenced this pull request Sep 13, 2024
Signed-off-by: crazycs <crazycs520@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
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

Successfully merging this pull request may close these issues.

nil panic once meet quota limit error
4 participants