feat: define external snapshot API contracts (part1)#50393
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: weiliu1031 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@weiliu1031 This is a feature PR ( How to resolve: |
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
8048e8f to
1b970d1
Compare
e14f3c0 to
acd84a4
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #50393 +/- ##
===========================================
+ Coverage 76.06% 78.96% +2.89%
===========================================
Files 1580 2239 +659
Lines 280634 397336 +116702
===========================================
+ Hits 213478 313754 +100276
- Misses 57566 73983 +16417
- Partials 9590 9599 +9
🚀 New features to boost your workflow:
|
acd84a4 to
83764a5
Compare
✅ CI Loop Results
|
| Stage | Result | Duration | Tests |
|---|---|---|---|
| ✅ Build | SUCCESS | 11.4min | - |
| ✅ Code-Check | SUCCESS | 8.2min | - |
| ✅ UT-GO | SUCCESS | 23.0min | 1030 passed |
| ✅ UT-Integration | SUCCESS | 24.5min | 46 passed |
| ✅ UT-CPP-Cov | SUCCESS | 37.1min | 7836 passed |
Total: 76min | Pipeline | Artifacts
Overall Coverage: 71.3%
Diff Coverage: Go 73.2% (224 hit, 82 miss, 306 measurable lines, 3328 unmeasured)
Diff Coverage HTML: view changed lines
Go Patch Warning: WARNING: Go patch coverage is partial; 3328 changed lines were unmeasured.
Total Patch Coverage: 73.2% (224/306 measurable lines, 3328 unmeasured)
issue: milvus-io#44358 Define the design and API contract for external snapshot export and restore. This adds the design record, public gRPC, REST, Go SDK surfaces, internal DataCoord proto plumbing, RBAC grouping, and database interceptor support. The request contract uses a single external_spec carrier and keeps db_name for namespace routing instead of authorization scope. Validation: - GOTOOLCHAIN=go1.25.10 go test -c -tags dynamic,test \ -gcflags="all=-N -l" -ldflags="-r ${RPATH}" \ -o /tmp/datacoord-commit1.test \ github.com/milvus-io/milvus/internal/datacoord - cd client && GOTOOLCHAIN=go1.25.10 go test -c \ -o /tmp/client-milvusclient-commit1.test ./milvusclient - source ~/.profile && cd pkg && GOTOOLCHAIN=go1.25.10 \ go build ./util - source ~/.profile && cd tests/go_client && GOTOOLCHAIN=go1.25.10 \ go list -deps -test ./testcases/... - source ~/.profile && cd pkg && GOTOOLCHAIN=go1.25.10 \ go mod verify - source ~/.profile && cd tests/go_client && GOTOOLCHAIN=go1.25.10 \ go mod verify - internal/proxy package compile blocked by missing local C++ header \ internal/core/output/include/segcore/search_result_export_c.h Signed-off-by: Wei Liu <wei.liu@zilliz.com>
83764a5 to
2a5de0b
Compare
✅ CI Loop Results
|
| Stage | Result | Duration | Tests |
|---|---|---|---|
| ✅ Build | SUCCESS | 9.3min | - |
| ✅ Code-Check | SUCCESS | 6.1min | - |
| ✅ UT-GO | SUCCESS | 22.8min | 1030 passed |
| ✅ UT-Integration | SUCCESS | 24.3min | 46 passed |
| ✅ UT-CPP-Cov | SUCCESS | 36.4min | 7837 passed |
Total: 76min | Pipeline | Artifacts
Overall Coverage: 71.3%
Diff Coverage: Go 73.2% (224 hit, 82 miss, 306 measurable lines, 3328 unmeasured)
Diff Coverage HTML: view changed lines
Go Patch Warning: WARNING: Go patch coverage is partial; 3328 changed lines were unmeasured.
Total Patch Coverage: 73.2% (224/306 measurable lines, 3328 unmeasured)
issue: #44358
design doc: docs/design-docs/design_docs/20260609-external-snapshot-export-restore.md
Part 1/3 of the external snapshot cross-bucket restore stack.
This PR defines the API contract and entry surfaces for external snapshot export and restore:
Validation copied from the commit: