Skip to content

*: fix panic in get cause error#1344

Merged
MyonKeminta merged 5 commits intotikv:masterfrom
crazycs520:fix-bugs00001
May 16, 2024
Merged

*: fix panic in get cause error#1344
MyonKeminta merged 5 commits intotikv:masterfrom
crazycs520:fix-bugs00001

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
@crazycs520 crazycs520 deleted the fix-bugs00001 branch May 16, 2024 03:19
}
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