Skip to content

Update gRPC keepalive defaults to 10s/5s with keepalive without calls#1758

Merged
sre-ci-robot merged 1 commit intomilvus-io:masterfrom
haorenfsa:grpc-keepalive-defaults
Feb 12, 2026
Merged

Update gRPC keepalive defaults to 10s/5s with keepalive without calls#1758
sre-ci-robot merged 1 commit intomilvus-io:masterfrom
haorenfsa:grpc-keepalive-defaults

Conversation

@haorenfsa
Copy link
Copy Markdown
Contributor

Summary

  • Change keepAliveTimeMs default from 55s to 10s
  • Change keepAliveTimeoutMs default from 20s to 5s
  • Enable keepAliveWithoutCalls by default (true instead of false)
  • Applied to both V1 (ConnectParam) and V2 (ConnectConfig)
  • Added unit tests verifying the new defaults

Test plan

  • MilvusServiceClientTest#connectParamDefaults verifies V1 defaults
  • MilvusClientV2Test#connectConfigDefaults verifies V2 defaults
  • Existing connectParam test continues to pass (custom values override defaults)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings February 12, 2026 07:29
@mergify mergify Bot added the needs-dco label Feb 12, 2026
@haorenfsa haorenfsa force-pushed the grpc-keepalive-defaults branch from 4a4d6ba to 4d20db9 Compare February 12, 2026 07:31
@mergify mergify Bot added dco-passed and removed needs-dco labels Feb 12, 2026
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

Updates the SDK’s gRPC keepalive default configuration (V1 ConnectParam and V2 ConnectConfig) to more aggressive settings and adds unit tests to lock in the new defaults.

Changes:

  • Updated default keepalive time/timeout to 10s / 5s (from 55s / 20s) in both V1 and V2 connection configs.
  • Enabled keepAliveWithoutCalls by default for both V1 and V2.
  • Added unit tests asserting the new default values for both APIs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
sdk-core/src/main/java/io/milvus/v2/client/ConnectConfig.java Adjusts V2 connection keepalive defaults (time/timeout/without-calls).
sdk-core/src/main/java/io/milvus/param/ConnectParam.java Adjusts V1 connection keepalive defaults (time/timeout/without-calls).
sdk-core/src/test/java/io/milvus/v2/client/MilvusClientV2Test.java Adds a unit test asserting the new V2 defaults.
sdk-core/src/test/java/io/milvus/client/MilvusServiceClientTest.java Adds a unit test asserting the new V1 defaults.

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

Comment thread sdk-core/src/main/java/io/milvus/param/ConnectParam.java
…thout calls

Change keepAliveTimeMs from 55s to 10s, keepAliveTimeoutMs from 20s to 5s,
and enable keepAliveWithoutCalls by default in both ConnectParam (V1) and
ConnectConfig (V2).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: haorenfsa <haorenfsa@gmail.com>
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

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


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

@mergify mergify Bot added the ci-passed label Feb 12, 2026
@yhmo
Copy link
Copy Markdown
Contributor

yhmo commented Feb 12, 2026

/lgtm
/approve

@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haorenfsa, 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

@sre-ci-robot sre-ci-robot merged commit 293b377 into milvus-io:master Feb 12, 2026
10 of 11 checks passed
yhmo pushed a commit to yhmo/milvus-sdk-java that referenced this pull request Feb 12, 2026
…thout calls (milvus-io#1758)

Change keepAliveTimeMs from 55s to 10s, keepAliveTimeoutMs from 20s to 5s,
and enable keepAliveWithoutCalls by default in both ConnectParam (V1) and
ConnectConfig (V2).

Signed-off-by: haorenfsa <haorenfsa@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
sre-ci-robot pushed a commit that referenced this pull request Feb 12, 2026
…thout calls (#1758) (#1759)

Change keepAliveTimeMs from 55s to 10s, keepAliveTimeoutMs from 20s to 5s,
and enable keepAliveWithoutCalls by default in both ConnectParam (V1) and
ConnectConfig (V2).

Signed-off-by: haorenfsa <haorenfsa@gmail.com>
Co-authored-by: shaoyue <haorenfsa@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

4 participants