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

collection not loaded: unrecoverable error: fail to search on all shard leaders #33

Closed
othmanjad opened this issue Aug 31, 2023 · 3 comments

Comments

@othmanjad
Copy link

i have a eroor when i use the same example in the document(book example )
Milvus.Client.MilvusException
HResult=0x80131500
Message=ErrorCode: UnexpectedError Reason: attempt #0: fail to get shard leaders from QueryCoord: collection=443943362921669896: collection not loaded: unrecoverable error: fail to search on all shard leaders
Source=Milvus.Client
StackTrace:
at Milvus.Client.MilvusClient.d__342.MoveNext() at Milvus.Client.MilvusCollection.<SearchAsync>d__181.MoveNext()
at Program.<>c__DisplayClass0_0.<<

$>g__Search|2>d.MoveNext() in D:\Users\User\Source\Repos\Ais\Ais\Program.cs:line 96
at Program.<$>d__0.MoveNext() in D:\Users\User\Source\Repos\Ais\Ais\Program.cs:line 32

@weianweigan
Copy link
Collaborator

weianweigan commented Sep 1, 2023

'collection not loaded: unrecoverable error: fail to search on all shard leaders'


It seems that collection has not loaded. Have you call loadcollection method before search?

await milvusClient.LoadCollectionAsync(collectionName);

@othmanjad
Copy link
Author

'collection not loaded: unrecoverable error: fail to search on all shard leaders'

It seems that collection has not loaded. Have you call loadcollection method before search?

await milvusClient.LoadCollectionAsync(collectionName);

Severity Code Description Project File Line Suppression State
Error CS1061 'MilvusClient' does not contain a definition for 'LoadCollectionAsync' and no accessible extension method

minhhieugma pushed a commit to minhhieugma/milvus-sdk-csharp that referenced this issue Sep 1, 2023
* Clean up progress APIs

* Remove overload that yields progress reports, accept IProgress
  instead
* Add index build progress API
* Make interval/timeout optional

* Redo polling mechanism
@weianweigan
Copy link
Collaborator

weianweigan commented Sep 1, 2023

The api changed, try this new usage.

MilvusCollection collection = milvusClient.GetCollection(collectionName);

collection.LoadCollectionAsync();

Docs here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants