Skip to content

add API V3 keyspace identity protos#47

Draft
disksing wants to merge 29 commits into
release-8.5-keyspacefrom
apiv3
Draft

add API V3 keyspace identity protos#47
disksing wants to merge 29 commits into
release-8.5-keyspacefrom
apiv3

Conversation

@disksing

Copy link
Copy Markdown
Collaborator

Summary

  • Add API V3 keyspace identity protobufs on top of release-8.5-keyspace.
  • Port the API V3 proto schema from pingcap/kvproto while preserving the related field numbers.
  • Add the scheduling RegionBuckets stream required by pd-cse on this release-line base.

Validation

  • scripts/generate_go.sh
  • scripts/check.sh updated scripts/proto.lock
  • git diff --check
  • go build ./pkg/...
  • go test ./pkg/...

disksing added 2 commits May 1, 2026 00:55
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
disksing and others added 13 commits May 1, 2026 10:07
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
@pingcap-cla-assistant

pingcap-cla-assistant Bot commented Jun 30, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 11 committers have signed the CLA.

✅ disksing
❌ rleungx
❌ you06
❌ wshwsh12
❌ MyonKeminta
❌ lcwangchao
❌ tiancaiamao
❌ ekexium
❌ glorv
❌ JmPotato
❌ hbisheng
You have signed the CLA already but the status is still pending? Let us recheck it.

disksing and others added 12 commits June 30, 2026 15:16
Signed-off-by: disksing <i@disksing.com>
* Add new GC API

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Update definition of keyspace specifier in requests to avoid potential misuses

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Update to the latest design

* Update protocol

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix missing field

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

---------

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Signed-off-by: disksing <i@disksing.com>
* feat(resource_manager): add keyspace support

Signed-off-by: JmPotato <github@ipotato.me>

* Use KeyspaceIDValue wrapper

Signed-off-by: JmPotato <github@ipotato.me>

---------

Signed-off-by: JmPotato <github@ipotato.me>

Signed-off-by: disksing <i@disksing.com>
* proto/pdpb: add global gc barrier API for pd

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

* address comment

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

* update GetAllKeyspacesGCStatesResponse

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

---------

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

Signed-off-by: disksing <i@disksing.com>
…te (#1461)

* Support excluding GC barriers for GetGCState and GetAllKeyspacesGCState

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add exclude global gc barriers parameter

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

---------

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Signed-off-by: disksing <i@disksing.com>
* add cross AZ traffic in resource consumption

Signed-off-by: glorv <glorvs@163.com>

* add network detail in exec detail

Signed-off-by: glorv <glorvs@163.com>

* use distinct read and write network traffic bytes

Signed-off-by: glorv <glorvs@163.com>

---------

Signed-off-by: glorv <glorvs@163.com>

Signed-off-by: disksing <i@disksing.com>
…info (#1308)

* kvrpcpb: Add more fields in CommitRequest/Response to give more lock info

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

* Add `mvcc_info` to `TxnLockNotFound`

* Add debug info

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

* Add CommitRole

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

* Update proto/kvrpcpb.proto

---------

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
Co-authored-by: cfzjywxk <cfzjywxk@gmail.com>

Signed-off-by: disksing <i@disksing.com>
* kvrpcpb: add request origin to context

Signed-off-by: Ziqian Qin <eke@fastmail.com>

* make

Signed-off-by: Ziqian Qin <eke@fastmail.com>

---------

Signed-off-by: Ziqian Qin <eke@fastmail.com>

Signed-off-by: disksing <i@disksing.com>
…ared lock in pessimistic transacitons. (#1374)

* reserve Op for shared lock

Signed-off-by: you06 <you1474600@gmail.com>

* distinguish between shared prewrite locks and shared pessimistic locks (#1377)

* let LockInfo carry the full txn info when it's shared

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* move the todo comment to the proper place

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* distinguish between shared prewrite locks and shared pessimistic locks

Signed-off-by: zyguan <zhongyangguan@gmail.com>

---------

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* update kvproto

Signed-off-by: you06 <you1474600@gmail.com>

* add embed shared_lock_infos

Signed-off-by: you06 <you1474600@gmail.com>

---------

Signed-off-by: you06 <you1474600@gmail.com>
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: zyguan <zhongyangguan@gmail.com>

Signed-off-by: disksing <i@disksing.com>
* tikvpb: add batch command transport timestamps

Add client_send_time_ns to BatchCommandsRequest and tikv_send_time_ns
to BatchCommandsResponse so callers can track when a batch request
leaves the client and when TiKV finishes preparing the response.

Signed-off-by: Bisheng Huang <hbisheng@gmail.com>

* proto: update proto lock for transport timestamps

Refresh scripts/proto.lock for the new batch command transport
timestamp fields so the compatibility metadata matches the proto
schema.

Signed-off-by: Bisheng Huang <hbisheng@gmail.com>

---------

Signed-off-by: Bisheng Huang <hbisheng@gmail.com>

Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
* kvrpcpb: add `UndeterminedResult` to `KeyError`

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

* txn: move `UndeterminedResult` to region error

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

---------

Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
Signed-off-by: disksing <i@disksing.com>
lcwangchao and others added 2 commits June 30, 2026 15:58
Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>

Signed-off-by: disksing <i@disksing.com>
* coprocessor: add TiCI estimate count rpc

* Update proto/tikvpb.proto

Co-authored-by: cfzjywxk <cfzjywxk@gmail.com>

* tikvpb: fix TiFlash comment casing

---------

Co-authored-by: cfzjywxk <cfzjywxk@gmail.com>

Signed-off-by: disksing <i@disksing.com>
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.