Skip to content

fix(error): use status.code instead of error_code for Milvus > 2.3 compatibility#105

Open
marlon-costa-dc wants to merge 1 commit intomilvus-io:mainfrom
marlon-costa-dc:fix/error-handling-status-code
Open

fix(error): use status.code instead of error_code for Milvus > 2.3 compatibility#105
marlon-costa-dc wants to merge 1 commit intomilvus-io:mainfrom
marlon-costa-dc:fix/error-handling-status-code

Conversation

@marlon-costa-dc
Copy link

Summary

  • Milvus server versions > 2.3 use status.code instead of status.error_code.
  • This PR updates error.rs and utils.rs to map status.code to ErrorCode properly.
  • Falls back to UnexpectedError with the original code and reason if the code is unknown.

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: marlon-costa-dc
To complete the pull request process, please assign yah01 after the PR has been reviewed.
You can assign the PR to them by writing /assign @yah01 in a comment when ready.

The full list of commands accepted by this bot can be found 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

@mergify
Copy link

mergify bot commented Feb 25, 2026

@marlon-costa-dc Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added the needs-dco label Feb 25, 2026
@mergify
Copy link

mergify bot commented Feb 25, 2026

@marlon-costa-dc Please associate the related issue to the body of your Pull Request. (eg. “issue: #187”)

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.

2 participants