Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Grpcclient return unrecoverable error #31256

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

weiliu1031
Copy link
Contributor

issue: #31222

grpcclient's call func return a unrecoverable error, then the caller's retry policy also breaks due to this unrecoverable error.

This PR introduce retry.Handle, the new func use func() (bool, error) as input parameters, which return shouldRetry directly, to avoid grpcclient return a unrecoverable error

@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. area/test sig/testing test/integration integration test labels Mar 14, 2024
@mergify mergify bot added the needs-dco DCO is missing in this pull request. label Mar 14, 2024
Copy link
Contributor

mergify bot commented Mar 14, 2024

@weiliu1031 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 kind/bug Issues or changes related a bug label Mar 14, 2024
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Mar 14, 2024
@weiliu1031
Copy link
Contributor Author

/cc @chyezh

Copy link
Contributor

mergify bot commented Mar 14, 2024

@weiliu1031 E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh
Copy link
Contributor

chyezh commented Mar 14, 2024

/lgtm

@weiliu1031
Copy link
Contributor Author

/run-cpu-e2e

@weiliu1031
Copy link
Contributor Author

rerun ut

Copy link
Contributor

mergify bot commented Mar 14, 2024

@weiliu1031 E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@weiliu1031
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Mar 14, 2024

@weiliu1031 E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 94.11765% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 81.03%. Comparing base (a52a520) to head (27f04be).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #31256      +/-   ##
==========================================
+ Coverage   80.99%   81.03%   +0.03%     
==========================================
  Files         978      978              
  Lines      142813   142852      +39     
==========================================
+ Hits       115674   115761      +87     
+ Misses      23257    23212      -45     
+ Partials     3882     3879       -3     
Files Coverage Δ
internal/util/grpcclient/client.go 87.69% <100.00%> (+1.46%) ⬆️
pkg/util/retry/retry.go 90.21% <92.85%> (-3.79%) ⬇️

... and 27 files with indirect coverage changes

@mergify mergify bot added the ci-passed label Mar 14, 2024
Copy link
Contributor

@congqixia congqixia left a comment

Choose a reason for hiding this comment

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

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, weiliu1031

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 147a3b8 into milvus-io:master Mar 15, 2024
14 checks passed
weiliu1031 added a commit to weiliu1031/milvus that referenced this pull request Mar 20, 2024
issue: milvus-io#31222

grpcclient's `call` func return a unrecoverable error, then the caller's
retry policy also breaks due to this unrecoverable error.

This PR introduce `retry.Handle`, the new func use `func() (bool,
error)` as input parameters, which return `shouldRetry` directly, to
avoid grpcclient return a unrecoverable error

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
sre-ci-robot pushed a commit that referenced this pull request Mar 21, 2024
issue: #31222
pr: #31256

grpcclient's `call` func return a unrecoverable error, then the caller's
retry policy also breaks due to this unrecoverable error.

This PR introduce `retry.Handle`, the new func use `func() (bool,
error)` as input parameters, which return `shouldRetry` directly, to
avoid grpcclient return a unrecoverable error

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/test ci-passed dco-passed DCO check passed. kind/bug Issues or changes related a bug lgtm sig/testing size/L Denotes a PR that changes 100-499 lines. test/integration integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants