-
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
ddl: fix panic in TestParallelDDL #16969
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16969 +/- ##
===========================================
Coverage 80.0143% 80.0143%
===========================================
Files 510 510
Lines 139245 139245
===========================================
Hits 111416 111416
Misses 18837 18837
Partials 8992 8992 |
PTAL @SunRunAway @wjhuang2016 |
/run-all-tests |
Almost one-line PR, PTAL @SunRunAway @wjhuang2016 |
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
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
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
/run-all-tests |
@bb7133 Hi it's LGT3 in fact |
/run-all-tests |
@lance6716 |
@lance6716 merge failed. |
/run-integration-copr-test |
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
/rebuild |
/rebuild |
1 similar comment
/rebuild |
/merge |
What problem does this PR solve?
Issue Number: close #15597
Problem Summary:
MockContext
failed interface type assertion, causing a panic. Proof see ddl_worker_test.go:testDDLSuite.TestParallelDDL failed #15597 (comment)try to reduce alloc slightly, BTW
What is changed and how it works?
check type assertion and return
statistics.PseudoRowCount
on failurechange 'make new slice, append old elements, append new element' to 'append new element to old slice'
Related changes
Check List
Tests
Side effects
Release note