Skip to content

Conversation

@ti-srebot
Copy link
Collaborator

@ti-srebot ti-srebot commented Mar 21, 2022

cherry-pick #557 to release-3.1
You can switch your code base to this Pull Request by using git-extras:

# In client-java repo:
git pr https://github.com/tikv/client-java/pull/559

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/client-java.git pr/559:release-3.1-d354ffc99aa0

Signed-off-by: iosmanthus myosmanthustree@gmail.com

What problem does this PR solve?

Issue Number: to #556

Problem Description:
Attach cluster_id and pd_addresses to slow log to distinguish the request destination while handling multiple TiKV clusters.

What is changed and how does it work?

Add withFields for SlowLogImpl, and use this interface to attach info dynamically while constructing the slow logger.

Code changes

  • Has exported function/method change

Check List for Tests

This PR has been tested by at least one of the following methods:

  • Unit test

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to be included in the release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator Author

/run-all-tests

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (release-3.1@54e3f3d). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release-3.1     #559   +/-   ##
==============================================
  Coverage               ?   29.20%           
  Complexity             ?     1140           
==============================================
  Files                  ?      263           
  Lines                  ?    16567           
  Branches               ?     1896           
==============================================
  Hits                   ?     4839           
  Misses                 ?    11196           
  Partials               ?      532           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54e3f3d...8520253. Read the comment docs.

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason merged commit ea65650 into tikv:release-3.1 Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants