Skip to content

Add getReplicateInfo()#1871

Merged
sre-ci-robot merged 1 commit into
milvus-io:masterfrom
yhmo:ma
May 28, 2026
Merged

Add getReplicateInfo()#1871
sre-ci-robot merged 1 commit into
milvus-io:masterfrom
yhmo:ma

Conversation

@yhmo
Copy link
Copy Markdown
Contributor

@yhmo yhmo commented May 28, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2026 09:39
@sre-ci-robot
Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 GetReplicateInfoReq request builder with basic parameter validation.
  • Introduce GetReplicateInfoResp response model with gRPC-to-SDK conversion helpers.
  • Add MilvusClientV2#getReplicateInfo() and CDCService#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.

Comment thread sdk-core/src/main/java/io/milvus/v2/service/cdc/CDCService.java
@mergify mergify Bot added the ci-passed label May 28, 2026
Signed-off-by: yhmo <yihua.mo@zilliz.com>
@mergify mergify Bot removed the ci-passed label May 28, 2026
@yhmo yhmo added the lgtm label May 28, 2026
@mergify mergify Bot added the ci-passed label May 28, 2026
@sre-ci-robot sre-ci-robot merged commit a988668 into milvus-io:master May 28, 2026
6 checks passed
@yhmo yhmo deleted the ma branch May 29, 2026 02:14
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.

3 participants