milvus
milvus copied to clipboard
fix has collection cause panic
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: weiliu1031
To complete the pull request process, please assign yanliang567 after the PR has been reviewed.
You can assign the PR to them by writing /assign @yanliang567 in a comment when ready.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@weiliu1031 Please associate the related issue to the body of your Pull Request. (eg. “issue: #
@weiliu1031 ut workflow job failed, comment rerun ut can trigger the job again.
why would it result in panic? it should return false if collection not there as expected?
why would it result in panic? it should return false if collection not there as expected?
cause rootcoord.DescribeCollection will return ErrorCode_UnexpectedError, it will cause handler.HasCollection retry many times and finnally panic
why would it result in panic? it should return false if collection not there as expected?
cause rootcoord.DescribeCollection will return ErrorCode_UnexpectedError, it will cause handler.HasCollection retry many times and finnally panic
Fixed that by check unexpectedExcepton