api: sync API V3 keyspace identity protos - #47
Open
disksing wants to merge 35 commits into
Open
Conversation
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>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
|
|
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>
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>
Sync the final protocol changes from pingcap/kvproto#1458 at 7022f46937bc35125fb6d65aad5a0eedd59e7cfd onto release-8.5-keyspace. Preserve the downstream release schema and regenerate Go bindings and proto.lock with the downstream toolchain. Signed-off-by: disksing <i@disksing.com>
Keep the release-8.5-keyspace Resource Manager schema and generated bindings unchanged as requested. Signed-off-by: disksing <i@disksing.com>
disksing
marked this pull request as ready for review
July 28, 2026 01:07
Match new proto blocks to each release file's existing indentation style. 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release-8.5-keyspace@20fe3db22397921ca101510bdef2dcee094134a4.7022f46937bc35125fb6d65aad5a0eedd59e7cfd).7932dbe6f8bd06031c265abf93406e2bb917781f).scripts/proto.lockwith the downstream release toolchain.Downstream differences
master.release-8.5-keyspace.externalworkloadpb,keyspace_encryptionpb,DfsStatScope, and the newer GCKeyspaceScopeare absent from this release line, so their upstream-only edits are not reintroduced.Namespaceservice split and regenerate against the release-line schema; thepdpbcomment from that upstream commit was already present from the #1458 port.Validation
make checkGOPROXY=https://goproxy.cn,direct GOSUMDB=off go test ./...scripts/generate_go.sh; generated output had zero drift.go mod tidycompleted with nogo.modorgo.sumchanges.git diff --checkproto/resource_manager.proto,pkg/resource_manager/resource_manager.pb.go, and the Resource Manager lock definition have zero diff from the target base.Traceability
7022f46937bc35125fb6d65aad5a0eedd59e7cfd059694ae4472276644613acccefa24cbc89d959f7932dbe6f8bd06031c265abf93406e2bb917781ff34368224b8e021fc56c2d4fe94ea34130284316