-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: Index Build Progress is always Finished
#40580
Comments
Hey @lowener! 👋 I'm here to help you with any bugs, questions, or contributions you have for Milvus. Let's tackle this issue together! The issue you're experiencing seems to be related to the This incorrect state reporting affects the To address this, you might need to verify the logic in your implementation or check for any updates or patches that might have been released to fix this issue in the Milvus version you are using. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Finished means the initial index building is done. if you keep ingesting data into milvus , then you should see more pending rows, but that doesn't mean you can't search. If you wait for a while and compaction is not happened for a while, you should finally get indexed_rows = totalrows. |
/assign @lowener |
What do you mean by "the initial index building is done"? If 0 rows are indexed it is still considered as "Finished"? I am using it in the following workflow # Vectors have already been ingested beforehand
collection.create_index(field_name=EMBEDDING_FIELD, index_params={
"index_type": index_type,
"metric_type": "L2",
"params": index_params
})
utility.wait_for_index_building_complete(collection_name=collection_name, index_name="embedding",
using=get_milvus_client()._using)
# Step 2: Load the index created to make it searchable.
collection.load()
# Wait until the load process completes
utility.wait_for_loading_complete(
collection_name=collection_name,
using=get_milvus_client()._using,
) In the example I just pasted here the |
There are two way to use milvus. if you want to ensure your current collection is fully indexed, the easiest way is to resubmit a index request |
Is there an existing issue for this?
Environment
Current Behavior
Calls to pymilvus
utility.index_building_progress
returns the following:The state is always
Finished
even though it is still building. This create another issue withutility.wait_for_index_building_complete
that doesn't wait for build to be done, since it is probably just checking thatstate==Finished
.Expected Behavior
Have
state==In Progress
if build is not done. Andutility.wait_for_index_building_complete
to actually wait for build.Steps To Reproduce
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: