-
Notifications
You must be signed in to change notification settings - Fork 711
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
server: Refine log error format #2873
Conversation
Signed-off-by: ZenoTan <zenotan1998@gmail.com>
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Signed-off-by: ZenoTan <zenotan1998@gmail.com>
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
please address the comments. @ZenoTan |
Signed-off-by: ZenoTan <zenotan1998@gmail.com>
server/heartbeat_streams.go
Outdated
@@ -96,7 +96,7 @@ func (s *heartbeatStreams) run() { | |||
if stream, ok := s.streams[storeID]; ok { | |||
if err := stream.Send(msg); err != nil { | |||
log.Error("send heartbeat message fail", | |||
zap.Uint64("region-id", msg.RegionId), errs.ZapError(err)) | |||
zap.Uint64("region-id", msg.RegionId), errs.ZapError(errs.ErrPbStreamSend.Wrap(err).GenWithStackByArgs())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think gRPC send is enough for this?
server/core/region_storage.go
Outdated
@@ -15,6 +15,7 @@ package core | |||
|
|||
import ( | |||
"context" | |||
"github.com/tikv/pd/pkg/errs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to change
Signed-off-by: ZenoTan <zenotan1998@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
plz resolve the conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM
Co-authored-by: Ryan Leung <rleungx@gmail.com> Signed-off-by: ZenoTan <zenotan1998@gmail.com>
/merge |
/run-all-tests |
/label needs-cherry-pick-4.0 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #2911 |
Signed-off-by: ZenoTan zenotan1998@gmail.com
What problem does this PR solve?
Refine log format in package server. Solve #2704
What is changed and how it works?
log.Error
anderrors.Errorf
parts are changedCheck List
Tests
Code changes
Release note