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
6 of 7 tasks
JmPotato opened this issue Nov 2, 2023 · 0 comments
Open
6 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 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
ti-chi-bot bot pushed a commit that referenced this issue May 29, 2024
ref #7300

Use different suites to test HTTP client initialization instead of maintaining different modes manually.

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

ref #7300

Avoid redirecting when the leader remains unchanged.

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 Jun 3, 2024
…nt (#8229)

ref #7300

Schedule a member change check when the HTTP status code is 503 or receives a leader/primary change error.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jun 24, 2024
…el (#8303)

ref #7300, close #7853

- add a real cluster test to test `skip evict-leader-scheduler when setting schedule deny label`
- add `DeleteStoreLabel` API and `DeleteScheduler` API

Signed-off-by: okJiang <819421878@qq.com>
ti-chi-bot bot added a commit that referenced this issue Jul 29, 2024
ref #7300, close #8237

fix panic when call pd-ctl cluster with tls

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: okJiang <819421878@qq.com>

Co-authored-by: okJiang <819421878@qq.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jul 31, 2024
ref tikv#7300

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
JmPotato added a commit to ti-chi-bot/pd that referenced this issue Aug 1, 2024
ref tikv#7300

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Aug 1, 2024
…nt (#8229) (#8464)

ref #7300

Schedule a member change check when the HTTP status code is 503 or receives a leader/primary change error.

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

Co-authored-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot added a commit that referenced this issue Aug 21, 2024
ref #7300

replace gc_safepoint call with PD HTTP SDK

Signed-off-by: Boyang Lyu <boyangly@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Sep 9, 2024
ref tikv#7300, close tikv#7853

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
rleungx pushed a commit to rleungx/pd that referenced this issue Sep 10, 2024
…el (tikv#8303)

ref tikv#7300, close tikv#7853

- add a real cluster test to test `skip evict-leader-scheduler when setting schedule deny label`
- add `DeleteStoreLabel` API and `DeleteScheduler` API

Signed-off-by: okJiang <819421878@qq.com>
rleungx pushed a commit to rleungx/pd that referenced this issue Sep 10, 2024
…el (tikv#8303)

ref tikv#7300, close tikv#7853

- add a real cluster test to test `skip evict-leader-scheduler when setting schedule deny label`
- add `DeleteStoreLabel` API and `DeleteScheduler` API

Signed-off-by: okJiang <819421878@qq.com>
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