milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
29.09k stars 2.79k forks source link

[Bug]: [ResourceGroup] Milvus does not report error if loading with 1 replica into 2 empty resource group #22058

Closed yanliang567 closed 1 year ago

yanliang567 commented 1 year ago

Is there an existing issue for this?

Environment

- Milvus version:  master-20230208-403f85a9
- Deployment mode(standalone or cluster): cluster
- MQ type(rocksmq, pulsar or kafka):    pulsar
- SDK version(e.g. pymilvus v2.0.0rc2): pymilvus-2.3.0.dev31

Current Behavior

client terminated

Expected Behavior

report error with msg


rgA_name = cf.gen_unique_str('rgA')
        self.init_resource_group(rgA_name)
        rgB_name = cf.gen_unique_str('rgB')
        self.init_resource_group(rgB_name)
collection_w.load(replica_number=1,
                          _resource_groups=[rgA_name, rgB_name]

Steps To Reproduce

load the collection with replica=1 and rgA and rgB are empty(no available nodes)

Milvus Log

No response

Anything else?

No response

yanliang567 commented 1 year ago

/assign @weiliu1031 /unassign

weiliu1031 commented 1 year ago

/assign @yanliang567

weiliu1031 commented 1 year ago

please verify on this

yanliang567 commented 1 year ago

verified on master-20230216-8ec5ba13 with pymilvus 2.3 dev38 ct.err_msg: 'failed to load collection, err=failed to spawn replica for collection[resource group num can only be 0, 1 or same as replica number]'