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

executor: make the format of user and host fields in slow logs be compatible with MySQL #18162

Merged
merged 9 commits into from
Jul 6, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Jun 22, 2020

What problem does this PR solve?

Issue Number: related to #17846

Problem Summary: make the format of user and host fields in slow logs be compatible with MySQL

What is changed and how it works?

The format of TiDB now is: # User: {user_name}@{host_address}
For example: # User: root@127.0.0.1

After this PR, it will be: # User@Host: {user_name}[{user_name}] @ {host_name} [{host_address}], which is compatible with MySQL.
For example: # User@Host: root[root] @ localhost [127.0.0.1]

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:

Check List

Tests

  • Unit test

Release note

  • executor: make the format of user and host fields in slow logs be compatible with MySQL

@qw4990 qw4990 added the sig/execution SIG execution label Jun 22, 2020
@qw4990 qw4990 requested a review from crazycs520 June 22, 2020 05:52
@qw4990 qw4990 requested a review from a team as a code owner June 22, 2020 05:52
@qw4990 qw4990 requested review from SunRunAway and removed request for a team June 22, 2020 05:52
@qw4990 qw4990 requested a review from XuHuaiyu June 22, 2020 05:54
Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@qw4990
Copy link
Contributor Author

qw4990 commented Jun 22, 2020

LGTM

Thx @crazycs520 , PTAL @SunRunAway @XuHuaiyu

@qw4990 qw4990 added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 22, 2020
@qw4990
Copy link
Contributor Author

qw4990 commented Jun 22, 2020

/rebuild

@github-actions github-actions bot added the sig/sql-infra SIG: SQL Infra label Jun 22, 2020
@qw4990
Copy link
Contributor Author

qw4990 commented Jun 22, 2020

/run-unit-test

1 similar comment
@qw4990
Copy link
Contributor Author

qw4990 commented Jun 22, 2020

/run-unit-test

@codecov
Copy link

codecov bot commented Jun 22, 2020

Codecov Report

Merging #18162 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #18162   +/-   ##
===========================================
  Coverage   79.4716%   79.4716%           
===========================================
  Files           536        536           
  Lines        145394     145394           
===========================================
  Hits         115547     115547           
  Misses        20576      20576           
  Partials       9271       9271           

@qw4990 qw4990 requested a review from wshwsh12 June 28, 2020 03:03
@qw4990
Copy link
Contributor Author

qw4990 commented Jul 3, 2020

/run-unit-test

1 similar comment
@qw4990
Copy link
Contributor Author

qw4990 commented Jul 3, 2020

/run-unit-test

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot
Copy link
Contributor

@SunRunAway,Thanks for your review.

@SunRunAway
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 6, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@qw4990 merge failed.

@qw4990
Copy link
Contributor Author

qw4990 commented Jul 6, 2020

/rebuild

@qw4990 qw4990 merged commit ef8ad55 into pingcap:master Jul 6, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 6, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #18379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants