Add getReplicateInfo()#1871
Merged
Merged
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yhmo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
Adds a new CDC API entrypoint to fetch replication checkpoint information via getReplicateInfo(), wiring it through the v2 client/service layers and covering it with unit tests.
Changes:
- Introduce
GetReplicateInfoReqrequest builder with basic parameter validation. - Introduce
GetReplicateInfoRespresponse model with gRPC-to-SDK conversion helpers. - Add
MilvusClientV2#getReplicateInfo()andCDCService#getReplicateInfo()plus corresponding unit tests/mocks.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sdk-core/src/test/java/io/milvus/v2/service/cdc/CDCServiceTest.java | Adds tests for getReplicateInfo() response mapping and request validation. |
| sdk-core/src/test/java/io/milvus/v2/client/MilvusClientV2Test.java | Extends builder/getter-setter verification coverage to the new request/response DTOs. |
| sdk-core/src/test/java/io/milvus/v2/BaseTest.java | Mocks blockingStub.getReplicateInfo() to support the new unit test. |
| sdk-core/src/main/java/io/milvus/v2/service/cdc/response/GetReplicateInfoResp.java | New response DTO with nested checkpoint/message types and fromGRPC mapping. |
| sdk-core/src/main/java/io/milvus/v2/service/cdc/request/GetReplicateInfoReq.java | New request DTO with builder validation for required fields. |
| sdk-core/src/main/java/io/milvus/v2/service/cdc/CDCService.java | Implements getReplicateInfo() RPC call and response conversion. |
| sdk-core/src/main/java/io/milvus/v2/client/MilvusClientV2.java | Exposes getReplicateInfo() on the public v2 client API. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: yhmo <yihua.mo@zilliz.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.
No description provided.