-
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
*: add table storage info status api #22859
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
a07fa93
to
6fde610
Compare
de31363
to
f363b81
Compare
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 logic LGTM, while I wish you could make this PR more friendly to the reviewers and maintainers, Please make the code as easy as possible, for example, it is a good habit if the number of '{..{..{..}}}' less than 3.
server/http_handler.go
Outdated
if s, err = session.CreateSession(h.Store); err != nil { | ||
return | ||
} | ||
if s != nil { |
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.
it seems we do not need to do anything when s is nil, could we process this situation before, so we needn't always remember this situation until the end of the function.
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.
done
server/http_handler.go
Outdated
} | ||
if s != nil { | ||
defer s.Close() | ||
if ctx, ok := s.(sessionctx.Context); ok { |
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.
ditto, less {}
, return as early as possible.
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.
done
/run-build |
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
PTAL @morgo |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
|
/run-unit-test |
1 similar comment
/run-unit-test |
/merge |
/merge cancel |
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: aae2fba
|
@jianzhiyao: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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 ti-community-infra/tichi repository. |
/run-all-tests |
1 similar comment
/run-all-tests |
/merge |
What problem does this PR solve?
Issue Number: close #4989
Problem Summary:
Add table storage infomation to status api.
What is changed and how it works?
Proposal: #4989
What's Changed:
new status api: http://127.0.0.1:10080/schema_storage
How it Works:
By querying INFORMATION_SCHEMA.TABLES.
Check List
Tests
Side effects
Release note