TiKV Metadata#3493
Conversation
* add TiKV to helm chart * apply coderabbit suggestion * format * format
* add metadata API * fix * fix * fix * fix typo * fix typo
* Add internal TiKV client package * Fix import * Fix client name * Remove redundant comment * Use Go 1.25.5 * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Remove mirror * Implement benchmark * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Add unified metadata interface * Add pdpb * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Update internal/client/v1/client/meta/tikv/tikv.go Co-authored-by: Copilot <[email protected]> Signed-off-by: Matts966 <[email protected]> * Fix test build * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Add pdpb * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Remove redundant rust changes * Remove redundant rust files * Add PD handling * Update proto and compile * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Fix impl * Add clusterId handling * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Implement benchmark fix * Try to fix region error retry logic * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Fix logic * Add EpochNotMatch correct region info * backup * Remove batch APIs * precise benchmark * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Update internal/client/v1/client/meta/tikv/option.go Co-authored-by: Copilot <[email protected]> Signed-off-by: Matts966 <[email protected]> * Update internal/client/v1/client/meta/tikv/tikv.go Co-authored-by: Copilot <[email protected]> Signed-off-by: Matts966 <[email protected]> * Remove redundant addrs * Remove outdated unittest * Use Skipf when skipping benchmark * Without goto * Fix sample envvar * Add bounds check for Peers slice access to prevent panic. * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> --------- Signed-off-by: Vdaas CI <[email protected]> Signed-off-by: Matts966 <[email protected]> Signed-off-by: Matts966 <[email protected]> Co-authored-by: Vdaas CI <[email protected]> Co-authored-by: Copilot <[email protected]>
* add meta e2e * fix k8s/vald/deploy * fix k8s/vald/deploy * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> --------- Signed-off-by: Vdaas CI <[email protected]> Co-authored-by: Vdaas CI <[email protected]>
* Generate WithMetadata APIs * Gen * Gen * Add _meta APIs * Add metadata: None * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Update .gitfiles --------- Signed-off-by: Vdaas CI <[email protected]> Co-authored-by: Vdaas CI <[email protected]>
* Use tikv go client * Remove tikv generated code * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Use errors.Is * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> --------- Signed-off-by: Vdaas CI <[email protected]> Co-authored-by: Vdaas CI <[email protected]>
* Add new layer for metadata * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> * Following review by Copilot * fix err handling and span name * make helm/schema/all * 🤖 Update license headers / Format go codes and yaml files Signed-off-by: Vdaas CI <[email protected]> --------- Signed-off-by: Vdaas CI <[email protected]> Co-authored-by: Vdaas CI <[email protected]>
Deploying vald with
|
| Latest commit: |
de82d0e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3fd98ee3.vald.pages.dev |
| Branch Preview URL: | https://feature-metadata-tikv.vald.pages.dev |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new meta gateway feature: proto/grpc REST mappings for "WithMetadata" CRUD APIs, a TiKV-backed metadata client, metadata-aware LB handlers/clients, Helm/TiDB/TiKV deployment assets, Docker/Make/CI updates, and payload/schema/docs changes to carry per-vector metadata. Changes
Sequence DiagramsequenceDiagram
participant Client
participant MetaGateway as Meta Gateway
participant LBGateway as LB Gateway
participant TiKV as TiKV Metadata Store
participant Agent
Client->>MetaGateway: SearchWithMetadata(request with vector)
activate MetaGateway
MetaGateway->>LBGateway: Search(vector)
activate LBGateway
LBGateway->>Agent: Search(vector)
activate Agent
Agent-->>LBGateway: results
deactivate Agent
LBGateway-->>MetaGateway: results
deactivate LBGateway
par fetch metadata concurrently
MetaGateway->>TiKV: Get(id_1)
MetaGateway->>TiKV: Get(id_2)
MetaGateway->>TiKV: Get(id_N)
TiKV-->>MetaGateway: metadata_1
TiKV-->>MetaGateway: metadata_2
TiKV-->>MetaGateway: metadata_N
end
MetaGateway->>Client: results enriched with metadata
deactivate MetaGateway
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly Related PRs
Suggested Reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
|
|
[CHATOPS:HELP] ChatOps commands.
|
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
This reverts commit 76be6f6.
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
Signed-off-by: Vdaas CI <[email protected]>
2b50cd1 to
97ab66e
Compare
|
/format |
97ab66e to
9332953
Compare
|
/format |
|
[FORMAT] Updating license headers and formatting go codes triggered by Matts966. |
Signed-off-by: Vdaas CI <[email protected]>
|
[FORMAT] Updating license headers and formatting go codes triggered by Matts966. |
|
[FORMAT] Nothing to format. |
* add search_meta type in e2e v2 * change neighbor type (#3524) * fix insert_meta, search_meta, modification, strategy --------- Co-authored-by: Kosuke Morimoto <[email protected]>
Description
Related Issue
Versions
Checklist
Special notes for your reviewer
Summary by CodeRabbit
New Features
Documentation