-
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
planner, executor: support SQL show pump/drainer status
#9456
planner, executor: support SQL show pump/drainer status
#9456
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9456 +/- ##
==========================================
- Coverage 67.38% 67.35% -0.03%
==========================================
Files 375 375
Lines 78746 78777 +31
==========================================
- Hits 53063 53062 -1
- Misses 20908 20940 +32
Partials 4775 4775
Continue to review full report at Codecov.
|
show pump/drainer status
show pump/drainer status
@WangXiangUSTC PTAL |
thanks @caohe |
ea618f7
to
4b29ef9
Compare
show pump/drainer status
show pump/drainer status
rest LGTM |
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 |
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.
@caohe could you add some unit test?
@zz-jason OK. @WangXiangUSTC and I have both tested it manually. But I don't know how to add unit tests to it. It seems that I should start/mock a pump/drainer in the test code? Or simply check the number of rows and columns in the result? |
/run-all-tests |
Both "mock a pump/drainer in the test code" and "simply check the number of rows and columns in the result" are acceptable to me |
0b4dfd2
to
9631e3b
Compare
48c7a31
to
378e59d
Compare
/run-all-tests |
/run-all-tests |
I have tried a few times to add unit test for this sql clause with the help of @WangXiangUSTC . But there are some difficulties in mocking pd. So I am sorry but may be not able to add unit test this time. I will add unit test when I find a better way. |
What problem does this PR solve?
Impl #9201
What is changed and how it works?
Changes
executor
andplanbuilder
.Just like
binlogctl
, it gets pump and drainer status from PD.Check List
Tests
show pump status
andshow drainer status
to check)Related changes