milvus: [Bug]: collection.delete can't delete entity

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: v2.0.0-PreGA
- Deployment mode(standalone or cluster):
- SDK version(e.g. pymilvus v2.0.0rc9):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

con = Collection(name=‘qa_cp’) expr = “id in [ 430408969516748387, 430408969516748434, 430408969516748379 ]” res = con.delete(expr)

(insert count: 0, delete count: 3, upsert count: 0, timestamp: 430458026279829505) [430408969516748387, 430408969516748434, 430408969516748379]

Expected Behavior

I try to delete entity ,it is show delete. but I can search those,Do not know this is what reason

Steps To Reproduce

No response

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

@excited-tiger collection.num_entities() is not precise especially after delete ops. But I believe that the deleted vectors are not available for search/query if you are in strong consistency level. More info about consistency level: https://github.com/milvus-io/milvus/blob/master/docs/developer_guides/how-guarantee-ts-works.md