Skip to content

[Bug]: milvus is not able to create collection #45724

@FeilongHou

Description

@FeilongHou

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: master-20251119-40fdf1e8-amd64
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka): 
- SDK version(e.g. pymilvus v2.0.0rc2): 2.7.0rc54
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

When running

collection_name = "test_partial_update_timestamp"

schema = client.create_schema(auto_id=False, enable_dynamic_field=True)
schema.add_field(field_name="my_id", datatype=DataType.INT64, is_primary=True)
schema.add_field(field_name="my_vector", datatype=DataType.FLOAT_VECTOR, dim=default_dim)
schema.add_field(field_name="timestamp", datatype=DataType.TIMESTAMPTZ, nullable=True)
index_params = client.prepare_index_params()
index_params.add_index(field_name="my_vector", index_type="AUTOINDEX", metric_type="COSINE")

client.create_collection(collection_name, default_dim, schema=schema, 
                        consistency_level="Strong", index_params=index_params)

The error message is:

2025-11-20 14:59:47,506 [ERROR][handler]: RPC error: [load_collection], <MilvusException: (code=65535, message=call query coordinator LoadCollection: when load 1 replica count: service resource insufficient[currentStreamingNode=0][expectedStreamingNode=1])>, <Time:{'RPC start': '2025-11-20 14:59:47.488996', 'RPC error': '2025-11-20 14:59:47.506382'}> (decorators.py:253)
Traceback (most recent call last):
  File "/Users/zilliz/Desktop/milvus/tests/python_client/try.py", line 56, in <module>
    client.create_collection(collection_name, default_dim, schema=schema, 
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/milvus_client/milvus_client.py", line 101, in create_collection
    return self._create_collection_with_schema(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/milvus_client/milvus_client.py", line 879, in _create_collection_with_schema
    self.load_collection(collection_name, timeout=timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/milvus_client/milvus_client.py", line 915, in load_collection
    conn.load_collection(collection_name, timeout=timeout, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 254, in handler
    raise e from e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 250, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 297, in handler
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 195, in handler
    raise e from e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 165, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/client/grpc_handler.py", line 1336, in load_collection
    check_status(response)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/client/utils.py", line 67, in check_status
    raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=call query coordinator LoadCollection: when load 1 replica count: service resource insufficient[currentStreamingNode=0][expectedStreamingNode=1])>

But if run

from common import common_func as cf

collection_name = "test_partial_update_timestamp"

schema = cf.gen_all_datatype_collection_schema(dim=default_dim)
index_params = client.prepare_index_params()
text_sparse_emb_field_name = "text_sparse_emb"

for i in range(len(schema.fields)):
    field_name = schema.fields[i].name
    if field_name == "json_field":
        index_params.add_index(field_name, index_type="AUTOINDEX",
                        params={"json_cast_type": "json"})
    elif field_name == text_sparse_emb_field_name:
        index_params.add_index(field_name, index_type="AUTOINDEX", metric_type="BM25")
    else:
        index_params.add_index(field_name, index_type="AUTOINDEX")

client.create_collection(collection_name, default_dim, schema=schema, 
                        consistency_level="Strong", index_params=index_params)

The error message is:

2025-11-20 14:35:36,817 [ERROR][handler]: RPC error: [create_collection], <MilvusException: (code=65535, message=failed to validate analyzer, no delegator)>, <Time:{'RPC start': '2025-11-20 14:35:36.804112', 'RPC error': '2025-11-20 14:35:36.817029'}> (decorators.py:253)
Traceback (most recent call last):
  File "/Users/zilliz/Desktop/milvus/tests/python_client/try.py", line 49, in <module>
    client.create_collection(collection_name, default_dim, schema=schema, 
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/milvus_client/milvus_client.py", line 101, in create_collection
    return self._create_collection_with_schema(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/milvus_client/milvus_client.py", line 875, in _create_collection_with_schema
    conn.create_collection(collection_name, schema, timeout=timeout, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 254, in handler
    raise e from e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 250, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 297, in handler
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 195, in handler
    raise e from e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/decorators.py", line 165, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/client/grpc_handler.py", line 319, in create_collection
    check_status(status)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymilvus/client/utils.py", line 67, in check_status
    raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=failed to validate analyzer, no delegator)>

Expected Behavior

User should create collection as usual.

Steps To Reproduce

create any collection on this instance:
instance: eric-partial-mnfyw-milvus-standalone-7447fd5d79-9zcg2
IP: 10.102.9.29

I am not sure what exact operations I did to create such a problem, so I will keep this instance.

Milvus Log

[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:972] ["Sync skipped: no data to flush"] scope=MinioFileWriter,intent=Sync,traceID=87fc50daddcbb28a2f33657ce0e03b21 [segmentFileKey=file/wp/1/0,bufInst=0xc0025ebc70]
[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:781] ["waitIfFlushingBufferSizeExceededUnsafe: checking flushing buffer size"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=c0398525b89a984a9d7dfc244b14858e [segmentFileKey=file/wp/14/0]
[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:787] ["Flushing buffer size check passed"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=c0398525b89a984a9d7dfc244b14858e [segmentFileKey=file/wp/14/0,currentFlushingSize=-117,maxBufferSize=268435456,elapsedTime=0]
[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:1015] ["start roll buffer"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=c0398525b89a984a9d7dfc244b14858e [segmentFileKey=file/wp/14/0,bufInst=0xc0023ca690]
[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:1026] ["Sync skipped: buffer is empty"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=c0398525b89a984a9d7dfc244b14858e [segmentFileKey=file/wp/14/0,bufInst=0xc0023ca690]
[2025/11/20 07:29:49.292 +00:00] [DEBUG] [objectstorage/writer_impl.go:972] ["Sync skipped: no data to flush"] scope=MinioFileWriter,intent=Sync,traceID=c0398525b89a984a9d7dfc244b14858e [segmentFileKey=file/wp/14/0,bufInst=0xc0023ca690]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:781] ["waitIfFlushingBufferSizeExceededUnsafe: checking flushing buffer size"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=9f9bfcc5d2e4e46b7c12e7207d4f93db [segmentFileKey=file/wp/10/0]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:787] ["Flushing buffer size check passed"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=9f9bfcc5d2e4e46b7c12e7207d4f93db [segmentFileKey=file/wp/10/0,currentFlushingSize=-117,maxBufferSize=268435456,elapsedTime=0]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:1015] ["start roll buffer"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=9f9bfcc5d2e4e46b7c12e7207d4f93db [segmentFileKey=file/wp/10/0,bufInst=0xc00247c460]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:1026] ["Sync skipped: buffer is empty"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=9f9bfcc5d2e4e46b7c12e7207d4f93db [segmentFileKey=file/wp/10/0,bufInst=0xc00247c460]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:972] ["Sync skipped: no data to flush"] scope=MinioFileWriter,intent=Sync,traceID=9f9bfcc5d2e4e46b7c12e7207d4f93db [segmentFileKey=file/wp/10/0,bufInst=0xc00247c460]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:781] ["waitIfFlushingBufferSizeExceededUnsafe: checking flushing buffer size"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=074f1091f79aa83269344e13fc5a516d [segmentFileKey=file/wp/7/0]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:787] ["Flushing buffer size check passed"] scope=MinioFileWriter,intent=waitIfFlushingBufferSizeExceededUnsafe,traceID=074f1091f79aa83269344e13fc5a516d [segmentFileKey=file/wp/7/0,currentFlushingSize=-117,maxBufferSize=268435456,elapsedTime=0]
[2025/11/20 07:29:49.295 +00:00] [DEBUG] [objectstorage/writer_impl.go:1015] ["start roll buffer"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=074f1091f79aa83269344e13fc5a516d [segmentFileKey=file/wp/7/0,bufInst=0xc001ea7e30]
[2025/11/20 07:29:49.296 +00:00] [DEBUG] [objectstorage/writer_impl.go:1026] ["Sync skipped: buffer is empty"] scope=MinioFileWriter,intent=rollBufferUnsafe,traceID=074f1091f79aa83269344e13fc5a516d [segmentFileKey=file/wp/7/0,bufInst=0xc001ea7e30]
[2025/11/20 07:29:49.296 +00:00] [DEBUG] [objectstorage/writer_impl.go:972] ["Sync skipped: no data to flush"] scope=MinioFileWriter,intent=Sync,traceID=074f1091f79aa83269344e13fc5a516d [segmentFileKey=file/wp/7/0,bufInst=0xc001ea7e30]

Anything else?

No response

Metadata

Metadata

Assignees

Labels

kind/bugIssues or changes related a bugtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions