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

Tracking issue for the HTTP SDK #7300

Open
5 of 7 tasks
JmPotato opened this issue Nov 2, 2023 · 0 comments
Open
5 of 7 tasks

Tracking issue for the HTTP SDK #7300

JmPotato opened this issue Nov 2, 2023 · 0 comments
Assignees
Labels
component/api HTTP API. type/development The issue belongs to a development tasks

Comments

@JmPotato
Copy link
Member

JmPotato commented Nov 2, 2023

Development Task

As pingcap/tidb#35319 mentioned, providing a unified PD HTTP API SDK has become an urgent need. With this means, it could be easier for us to control and observe the use of the PD HTTP API in general.

@JmPotato JmPotato added component/api HTTP API. type/development The issue belongs to a development tasks labels Nov 2, 2023
ti-chi-bot bot added a commit that referenced this issue Nov 13, 2023
ref #7300

Introduce the HTTP client.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 17, 2023
ref #7300

- Implement more HTTP APIs.
- Use consts more in `Rule` structure.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot added a commit that referenced this issue Nov 21, 2023
ref #7300

Expand the PD HTTP interfaces to include more encapsulation, particularly focusing on the rule-related interfaces.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 21, 2023
ref #7300

Pass `res` interface into `respHandler`.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 27, 2023
ref #7300

- Implement more rule and batch related interfaces.
- Add more types and methods.
- Refine the tests.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 27, 2023
… key (#7449)

ref #7300

Use `KeyRange` to differentiate the encoding format of the key.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 29, 2023
ref #7300

- Add `GetHistoryHotRegions` interface.
- Add more tests.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Nov 30, 2023
ref #7300

Implement the marshaler interfaces for `Rule` and `RuleOP` to make sure we could set/get the correct start/end key.

Ref https://github.com/pingcap/tidb/blob/46d4231c8b0ade353b98572e7c2a015bddf940f4/pkg/ddl/placement/rule.go#L76-L91.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 9, 2024
ref #7300

Support backoffer in HTTP client.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 9, 2024
ref #7300

Copy a new `Backoffer` for each request to prevent race.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 15, 2024
ref #7300

Signed-off-by: lance6716 <lance6716@gmail.com>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
…ikv#7635)

ref tikv#7300

nowadays we have too many gomods which are redundant

remove redundant gomods, support only one go mod in integrations/tools/client/server respectively

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Signed-off-by: lance6716 <lance6716@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Co-authored-by: Hu# <ihusharp@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Signed-off-by: lance6716 <lance6716@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

When the PD leader returns a 404 status code, it no longer continues to retry but returns directly.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Support backoffer in HTTP client.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Copy a new `Backoffer` for each request to prevent race.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7300

Signed-off-by: lance6716 <lance6716@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
JmPotato added a commit to JmPotato/pd that referenced this issue Jan 25, 2024
ref tikv#7300

Support backoffer in HTTP client.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
JmPotato added a commit to JmPotato/pd that referenced this issue Jan 25, 2024
ref tikv#7300

Copy a new `Backoffer` for each request to prevent race.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot added a commit that referenced this issue Feb 5, 2024
)

ref #7300

Avoid initializing a new PD client for each cmd execution. Now we will only initialize a new one when the cluster changes.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot added a commit that referenced this issue Mar 7, 2024
#7883)

ref #7300

Utilize a mock PD service discovery to prevent blocking of the HTTP request during testing.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot added a commit that referenced this issue Mar 12, 2024
ref #7300

Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this issue Mar 22, 2024
ref #7300

Check if the source and target `*RegionsInfo` are nil before merging.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue May 24, 2024
ref #7300

Signed-off-by: husharp <jinhao.hu@pingcap.com>
ti-chi-bot bot pushed a commit that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/api HTTP API. type/development The issue belongs to a development tasks
Projects
None yet
Development

No branches or pull requests

2 participants