Skip to content
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

Implement the Diagnostics gRPC service #5980

Merged
merged 12 commits into from
Nov 25, 2019
Merged

Implement the Diagnostics gRPC service #5980

merged 12 commits into from
Nov 25, 2019

Conversation

lonng
Copy link
Member

@lonng lonng commented Nov 20, 2019

Signed-off-by: Lonng heng@lonng.org

What have you changed?

Initial implementation of diagnostics log service, which is part of pingcap/tidb#13481

Known issue

This PR is implemented using synchronous IO and refactored to asynchronous IO in the next PR.

What is the type of the changes?

Pick one of the following and delete the others:

  • New feature (a change which adds functionality)

How is the PR tested?

Please select the tests that you ran to verify your changes:

  • Unit test
  • Manual test (add detailed scripts or steps below)

Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
};

let mut search_files = vec![];
for entry in read_dir(log_dir)? {
Copy link
Member Author

@lonng lonng Nov 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewer: This PR is temporarily implemented using synchronous IO, which will later refactor asynchronous IO (implemented by me or by community members). The reason is that we need to implement an asynchronous version of rev_lines dependency. Consider the modification of this PR is very huge, so split into two parts.

overvenus
overvenus previously approved these changes Nov 25, 2019
@lonng
Copy link
Member Author

lonng commented Nov 25, 2019

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 25, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 25, 2019

/run-all-tests

@sre-bot sre-bot merged commit c0d805d into tikv:master Nov 25, 2019
@lonng lonng deleted the diagnostics branch November 25, 2019 14:12
hawkingrei pushed a commit to hawkingrei/tikv that referenced this pull request Dec 1, 2019
Signed-off-by: Lonng <heng@lonng.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/server Component: Server status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants