-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
disttask: make task executor onerror
log skip one more level of stack.
#56618
base: master
Are you sure you want to change the base?
disttask: make task executor onerror
log skip one more level of stack.
#56618
Conversation
Hi @LindaSummer. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @LindaSummer. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @lance6716 , Please take a look. 😊 Thanks very much. Best Regards, |
This comment was marked as resolved.
This comment was marked as resolved.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #56618 +/- ##
=================================================
- Coverage 73.3740% 56.2016% -17.1724%
=================================================
Files 1630 1754 +124
Lines 450230 629127 +178897
=================================================
+ Hits 330352 353580 +23228
- Misses 99584 251608 +152024
- Partials 20294 23939 +3645
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Thanks very much for your suggestions! I will try to add a test case for it. 😊 Best Regards, |
Hi @lance6716 , I have corrected my mistake and add unit tests. 😊 Please take a look. Best Regards, |
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.
Please run make bazel_prepare
to update .bazel
files, or just apply the following git diff (run git apply -
and paste following contents):
diff --git a/pkg/disttask/framework/taskexecutor/BUILD.bazel b/pkg/disttask/framework/taskexecutor/BUILD.bazel
index e65cc685e0..79a2483481 100644
--- a/pkg/disttask/framework/taskexecutor/BUILD.bazel
+++ b/pkg/disttask/framework/taskexecutor/BUILD.bazel
@@ -51,7 +51,7 @@ go_test(
],
embed = [":taskexecutor"],
flaky = True,
- shard_count = 16,
+ shard_count = 17,
deps = [
"//pkg/disttask/framework/mock",
"//pkg/disttask/framework/mock/execute",
@@ -74,5 +74,7 @@ go_test(
"@org_golang_google_grpc//status",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_mock//gomock",
+ "@org_uber_go_zap//:zap",
+ "@org_uber_go_zap//zaptest/observer",
],
)
Or I can help you push that change if you have some problems.
Thanks very much for your warm suggestion and help! I will update this PR later today.😄 Best Regards, |
Hi @lance6716 , Thanks very much for your bazel patch!😊 I have updated related code and added stacktrace explicitly for all Best Regards, |
Hi @lance6716 , Thanks for your patience and warm help! 😊 I have added an Best Regards, |
/retest |
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.
rest lgtm
Thanks very much for your patience and help! 😊 I'll update it later today. Best Regards, |
/retest |
Hi @lance6716 , Thanks for your review and suggestions! 😊 I have updated the related code, please help take a look. Best Regards, |
/cc @GMHDBJD |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/retest |
What problem does this PR solve?
Issue Number: close #56014
Problem Summary:
What changed and how does it work?
Error log in
onError
function's stack is always in the same function.But the real stack should be the one invoking
onError
.Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.