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

[Bug]: The number of entities is higher than expected after insertion and flushing. #32926

Open
1 task done
zhuwenxing opened this issue May 10, 2024 · 1 comment
Open
1 task done
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@zhuwenxing
Copy link
Contributor

zhuwenxing commented May 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version:2.4-20240509-263d3cc9-amd64
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

The number of entities before insertion was 4000. After inserting 2000 entries and flushing, the resulting number of entities was 8000, not the expected 2000 + 4000.

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [Connections.connect] args: ['default', '', '', 'default', ''], kwargs: {'host': '10.255.41.217', 'port': 19530} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : None  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [list_database] args: ['default', None], kwargs: {} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : ['default', 'prod']  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - INFO - ci_test]: all database: ['default', 'prod'] (test_data_persistence.py:26)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [using_database] args: ['prod', 'default'], kwargs: {} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : None  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [FieldSchema] args: ['int64', <DataType.INT64: 5>, ''], kwargs: {'is_primary': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'name': 'int64', 'description': '', 'type': <DataType.INT64: 5>}  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [FieldSchema] args: ['varchar', <DataType.VARCHAR: 21>, ''], kwargs: {'max_length': 65535, 'is_primary': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'name': 'varchar', 'description': '', 'type': <DataType.VARCHAR: 21>, 'params': {'max_length': 65535}}  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [FieldSchema] args: ['float', <DataType.FLOAT: 10>, ''], kwargs: {'is_primary': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'name': 'float', 'description': '', 'type': <DataType.FLOAT: 10>}  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [FieldSchema] args: ['json_field', <DataType.JSON: 23>, ''], kwargs: {'is_primary': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'name': 'json_field', 'description': '', 'type': <DataType.JSON: 23>}  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [FieldSchema] args: ['float_vector', <DataType.FLOAT_VECTOR: 101>, ''], kwargs: {'dim': 128, 'is_primary': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'name': 'float_vector', 'description': '', 'type': <DataType.FLOAT_VECTOR: 101>, 'params': {'dim': 128}}  (api_request.py:37)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [CollectionSchema] args: [[{'name': 'int64', 'description': '', 'type': <DataType.INT64: 5>}, {'name': 'float', 'description': '', 'type': <DataType.FLOAT: 10>}, {'name': 'varchar', 'description': '', 'type': <DataType.VARCHAR: 21>, 'params': {'max_length': 65535}}, {'name': 'json_field', 'description': '', 'type': <DataTyp......, kwargs: {'primary_field': 'int64', 'auto_id': False, 'enable_dynamic_field': False} (api_request.py:62)

[2024-05-09T23:20:19.086Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : {'auto_id': False, 'description': '', 'fields': [{'name': 'int64', 'description': '', 'type': <DataType.INT64: 5>, 'is_primary': True, 'auto_id': False}, {'name': 'float', 'description': '', 'type': <DataType.FLOAT: 10>}, {'name': 'varchar', 'description': '', 'type': <DataType.VARCHAR: 21>, 'params......  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [Connections.has_connection] args: ['default'], kwargs: {} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : True  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [Collection] args: ['Hello_Milvus', {'auto_id': False, 'description': '', 'fields': [{'name': 'int64', 'description': '', 'type': <DataType.INT64: 5>, 'is_primary': True, 'auto_id': False}, {'name': 'float', 'description': '', 'type': <DataType.FLOAT: 10>}, {'name': 'varchar', 'description': '', 'type': <DataType.VARC......, kwargs: {'consistency_level': 'Strong'} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : <Collection>:

[2024-05-09T23:20:19.087Z] -------------

[2024-05-09T23:20:19.087Z] <name>: Hello_Milvus

[2024-05-09T23:20:19.087Z] <description>: 

[2024-05-09T23:20:19.087Z] <schema>: {'auto_id': False, 'description': '', 'fields': [{'name': 'int64', 'description': '', 'type': <DataType.INT64: 5>, 'is_primary': True, 'auto_id': False}, {'name': 'float', 'description': '', 'type': <DataType.FLOAT: 10>}, {'n......  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_request)  : [Collection.flush] args: [], kwargs: {'timeout': 180} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - DEBUG - ci_test]: (api_response) : None  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - INFO - ci_test]: [test][2024-05-09T23:20:13Z] [0.54000265s] Hello_Milvus flush -> None (wrapper.py:30)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:13 - INFO - ci_test]: assert create collection: 0.028695106506347656, init_entities: 4000 (test_data_persistence.py:38)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:14 - DEBUG - ci_test]: (api_request)  : [Collection.insert] args: [[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,......, kwargs: {'timeout': 180} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:15 - DEBUG - ci_test]: (api_response) : (insert count: 2000, delete count: 0, upsert count: 0, timestamp: 449654768290234369, success count: 2000, err count: 0, cost: 0)  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:15 - INFO - ci_test]: [test][2024-05-09T23:20:14Z] [0.98294695s] Hello_Milvus insert -> (insert count: 2000, delete count: 0, upsert count: 0, timestamp: 449654768290234369, success count: 2000, err count: 0, cost: 0) (wrapper.py:30)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:15 - INFO - ci_test]: assert insert: 0.9835436344146729 (test_data_persistence.py:45)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:15 - DEBUG - ci_test]: (api_request)  : [Collection.flush] args: [], kwargs: {'timeout': 180} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:18 - DEBUG - ci_test]: (api_response) : None  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:18 - INFO - ci_test]: [test][2024-05-09T23:20:15Z] [3.05785885s] Hello_Milvus flush -> None (wrapper.py:30)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:18 - DEBUG - ci_test]: (api_request)  : [Collection.flush] args: [], kwargs: {'timeout': 180} (api_request.py:62)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:18 - DEBUG - ci_test]: (api_response) : None  (api_request.py:37)

[2024-05-09T23:20:19.087Z] [2024-05-09 23:20:18 - INFO - ci_test]: [test][2024-05-09T23:20:18Z] [0.52045167s] Hello_Milvus flush -> None (wrapper.py:30)

[2024-05-09T23:20:19.087Z] ------------- generated html file: file:///tmp/ci_logs/report.html -------------

[2024-05-09T23:20:19.087Z] =========================== short test summary info ============================

[2024-05-09T23:20:19.087Z] FAILED testcases/test_data_persistence.py::TestDataPersistence::test_milvus_default[default] - assert 8000 == (2000 + 4000)

[2024-05-09T23:20:19.087Z]  +  where 8000 = <base.collection_wrapper.ApiCollectionWrapper object at 0x7fa2341792b0>.num_entities

[2024-05-09T23:20:19.087Z]  +  and   2000 = len([0, 1, 2, 3, 4, 5, ...])

[2024-05-09T23:20:19.087Z] FAILED testcases/test_data_persistence.py::TestDataPersistence::test_milvus_default[prod] - assert 8000 == (2000 + 4000)

[2024-05-09T23:20:19.087Z]  +  where 8000 = <base.collection_wrapper.ApiCollectionWrapper object at 0x7fa2371dddf0>.num_entities

[2024-05-09T23:20:19.087Z]  +  and   2000 = len([0, 1, 2, 3, 4, 5, ...])

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

failed job: https://qa-jenkins.milvus.io/blue/organizations/jenkins/chaos-test-kafka-for-release-cron/detail/chaos-test-kafka-for-release-cron/13172/pipeline

log:
artifacts-datacoord-pod-kill-13172-server-logs.tar.gz

Anything else?

No response

@zhuwenxing zhuwenxing added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 10, 2024
@yanliang567
Copy link
Contributor

there might be some retries in server. @congqixia please help to double check.
/assign @congqixia
/unassign

@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 11, 2024
@yanliang567 yanliang567 added this to the 2.4.2 milestone May 11, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.2, 2.4.3, 2.4.4 May 24, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.4, 2.4.5 Jun 5, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.5, 2.4.6 Jun 26, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.6, 2.4.7 Jul 19, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.7, 2.4.8 Aug 12, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.8, 2.4.10 Aug 19, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.10, 2.4.11 Sep 5, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.11, 2.4.12 Sep 18, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.12, 2.4.13 Sep 27, 2024
@yanliang567 yanliang567 removed this from the 2.4.13 milestone Oct 15, 2024
@yanliang567 yanliang567 added this to the 2.4.14 milestone Oct 15, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.14, 2.4.16 Nov 14, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.16, 2.4.17, 2.4.18 Nov 21, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.18, 2.4.19 Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants