milvus-sdk-go icon indicating copy to clipboard operation
milvus-sdk-go copied to clipboard

Fix the issue of loading partition hanging

Open xwjdsh opened this issue 1 year ago • 6 comments

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.

xwjdsh avatar Mar 16 '23 12:03 xwjdsh

[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.

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 avatar Mar 16 '23 12:03 sre-ci-robot

Welcome @xwjdsh! It looks like this is your first PR to milvus-io/milvus-sdk-go 🎉

sre-ci-robot avatar Mar 16 '23 12:03 sre-ci-robot

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!

bigsheeper avatar Mar 17 '23 03:03 bigsheeper

Hi @xwjdsh thanks for you PR! It looks like the DCO check failed. Could you please fix that?

congqixia avatar Mar 17 '23 06:03 congqixia

@bigsheeper OK, ~~I'll update this.~~ updated.

xwjdsh avatar Mar 17 '23 06:03 xwjdsh

@congqixia It's OK now.

xwjdsh avatar Mar 17 '23 06:03 xwjdsh