Skip to content

Add flushAll/getFlushAllState#499

Merged
sre-ci-robot merged 1 commit into
milvus-io:2.6from
yhmo:26
Jun 1, 2026
Merged

Add flushAll/getFlushAllState#499
sre-ci-robot merged 1 commit into
milvus-io:2.6from
yhmo:26

Conversation

@yhmo
Copy link
Copy Markdown
Collaborator

@yhmo yhmo commented May 29, 2026

No description provided.

Signed-off-by: yhmo <yihua.mo@zilliz.com>
@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

This PR adds v2 SDK support for Milvus FlushAll and GetFlushAllState, including public request/response types, client/connection plumbing, and tests.

Changes:

  • Adds FlushAll / GetFlushAllState methods to MilvusClientV2 and implements the corresponding gRPC calls.
  • Introduces request/response classes for the new APIs.
  • Adds unit and mocked integration tests for success, RPC failure, and server failure paths.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/include/milvus/MilvusClientV2.h Exposes new v2 client APIs and includes new request/response headers.
src/include/milvus/request/utility/FlushAllRequest.h Defines public request parameters for FlushAll.
src/include/milvus/request/utility/GetFlushAllStateRequest.h Defines public request parameters for polling flush-all state.
src/include/milvus/response/utility/FlushAllResponse.h Defines public response containing the flush-all timestamp.
src/include/milvus/response/utility/GetFlushAllStateResponse.h Defines public response containing flushed state.
src/impl/request/utility/FlushAllRequest.cpp Implements FlushAllRequest accessors and fluent setters.
src/impl/request/utility/GetFlushAllStateRequest.cpp Implements GetFlushAllStateRequest accessors and fluent setters.
src/impl/response/utility/FlushAllResponse.cpp Implements FlushAllResponse accessors.
src/impl/response/utility/GetFlushAllStateResponse.cpp Implements GetFlushAllStateResponse accessors.
src/impl/MilvusClientV2Impl.h Declares new v2 implementation methods and helper.
src/impl/MilvusClientV2Impl.cpp Implements FlushAll, wait-loop polling, and GetFlushAllState.
src/impl/MilvusConnection.h Declares new connection-level gRPC wrappers.
src/impl/MilvusConnection.cpp Implements new connection-level gRPC wrappers.
test/it/mocks/MilvusMockedService.h Adds mocked service methods for the new RPCs.
test/it/v1/TestFlushAll.cpp Adds mocked integration coverage for both new APIs.
test/ut/request/TestUtilityRequests.cpp Adds request getter/setter unit tests.
test/ut/response/TestUtilityResponses.cpp Adds response getter/setter unit tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 97.59036% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (2.6@478ccc6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/impl/MilvusClientV2Impl.cpp 95.12% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff           @@
##             2.6     #499   +/-   ##
======================================
  Coverage       ?   77.40%           
======================================
  Files          ?      302           
  Lines          ?    13496           
  Branches       ?     1320           
======================================
  Hits           ?    10446           
  Misses         ?     2940           
  Partials       ?      110           
Files with missing lines Coverage Δ
src/impl/MilvusClientV2Impl.h 100.00% <ø> (ø)
src/impl/MilvusConnection.cpp 87.86% <100.00%> (ø)
src/impl/MilvusConnection.h 93.75% <ø> (ø)
src/impl/request/utility/FlushAllRequest.cpp 100.00% <100.00%> (ø)
...c/impl/request/utility/GetFlushAllStateRequest.cpp 100.00% <100.00%> (ø)
src/impl/response/utility/FlushAllResponse.cpp 100.00% <100.00%> (ø)
...impl/response/utility/GetFlushAllStateResponse.cpp 100.00% <100.00%> (ø)
src/include/milvus/MilvusClientV2.h 100.00% <ø> (ø)
...c/include/milvus/request/utility/FlushAllRequest.h 100.00% <100.00%> (ø)
...e/milvus/request/utility/GetFlushAllStateRequest.h 100.00% <100.00%> (ø)
... and 1 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify Bot added the ci-passed label May 29, 2026
@yhmo yhmo added the lgtm label Jun 1, 2026
@sre-ci-robot sre-ci-robot merged commit 16b8dad into milvus-io:2.6 Jun 1, 2026
17 of 18 checks passed
@yhmo yhmo deleted the 26 branch June 1, 2026 02:34
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