milvus-sdk-go
milvus-sdk-go copied to clipboard
Fix the issue of loading partition hanging
The program gets stuck here when I try to load a partition in sync mode.
err = s.client.LoadPartitions(
ctx, // ctx
collectionName, // CollectionName
[]string{partitionName}, // PartitionNames
false, // async
)
if err != nil {
return nil, err
}
Then I noticed that the InMemoryPercentages in ShowPartitions response has been deprecated, and I've also used curl http://localhost:9091/api/v1/partitions
to confirm that it's not responding. I used c.GetLoadingProgress
instead of c.ShowPartitions
, and the problem was solved.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: xwjdsh
To complete the pull request process, please assign sunby after the PR has been reviewed.
You can assign the PR to them by writing /assign @sunby
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
Welcome @xwjdsh! It looks like this is your first PR to milvus-io/milvus-sdk-go 🎉
Hi @xwjdsh , thank you for your contribution to Milvus. Could you please help modify the LoadCollection as well, like https://github.com/milvus-io/milvus-sdk-go/pull/424. Then I could close my duplicated pr. Have a nice day!
Hi @xwjdsh thanks for you PR! It looks like the DCO check failed. Could you please fix that?
@bigsheeper OK, ~~I'll update this.~~ updated.
@congqixia It's OK now.