Skip to content

Exception Handling for MilvusClientV2 in milvus-java-sdk 2.6.6 #1667

@divyaruhil

Description

@divyaruhil

Currently, milvus-java-sdk version 2.6.6 returns generic DEADLINE_EXCEEDED error for all connection-related issues (invalid host, wrong port, or certificate errors).
This makes it difficult to identify the root cause .
DEADLINE_EXCEEDED: CallOptions deadline exceeded after 7.780172042s. Name resolution delay 2.199438000 seconds. [closed=[], open=[[wait_for_ready, buffered_nanos=7788263209, waiting_for_connection]]]

As per our discussion, there’s no direct way to unwrap specific exceptions for MilvusClientV2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions