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

http: fix scatter table #11281

Merged
merged 3 commits into from
Jul 17, 2019
Merged

http: fix scatter table #11281

merged 3 commits into from
Jul 17, 2019

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Jul 16, 2019

What problem does this PR solve?

Currently, the scatter table API cannot work well because the key in the HTTP request for the scatter table is not escaped. This PR is also related to tikv/pd#1642.

What is changed and how it works?

This PR fixes it by escaping the key.

Check List

Tests

  • Manual test (by using an existed cluster to verify it)

Related changes

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

Signed-off-by: Ryan Leung <[email protected]>
@rleungx rleungx added the type/bugfix This PR fixes a bug. label Jul 16, 2019
@rleungx rleungx requested a review from nolouch July 16, 2019 15:05
@jackysp
Copy link
Member

jackysp commented Jul 17, 2019

Could tidb use pd client api for this http request?

@rleungx
Copy link
Member Author

rleungx commented Jul 17, 2019

@jackysp For now, we only support it by using HTTP API. But the answer may be yes later.

@codecov
Copy link

codecov bot commented Jul 17, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #11281   +/-   ##
===========================================
  Coverage   81.2744%   81.2744%           
===========================================
  Files           423        423           
  Lines         90155      90155           
===========================================
  Hits          73273      73273           
  Misses        11577      11577           
  Partials       5305       5305

@XuHuaiyu
Copy link
Contributor

Should we cherry-pick this commit to release-2.1 and release-3.0?

@rleungx
Copy link
Member Author

rleungx commented Jul 17, 2019

@XuHuaiyu Yes, we should.

@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Jul 17, 2019
@jackysp jackysp merged commit 651632e into pingcap:master Jul 17, 2019
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member

jackysp commented Jul 17, 2019

TiDB only needs one approval to merge to master, please don't approve it too early. @nolouch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants