milvus-io / milvus

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

[Bug]: [ResourceGroup] the error msg reports the source rg name instead of the target rg name #22217

Closed yanliang567 closed 1 year ago

yanliang567 commented 1 year ago

Is there an existing issue for this?

Environment

- Milvus version: master-20230216-8ec5ba13
- Deployment mode(standalone or cluster): cluster
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):  pymilvus-2.3.0.dev38

Current Behavior

the error msg reports the source rg name instead of the target rg name in test case: test_transfer_replica_into_same_rg

error = {ct.err_code: 999,
                 ct.err_msg: f'found [1] replicas of same collection in target resource group[{rgA_name}], dynamically increase replica num is unsupported'}
        self.utility_wrap.transfer_replica(source=rgB_name, target=rgA_name,
                                           collection_name=collection_w.name, num_replica=1,
                                           check_task=CheckTasks.err_res,
                                           check_items=error)

 >>> error_dict[ct.err_msg]
'found [1] replicas of same collection in target resource group[rgA_7wFVU3pC], dynamically increase replica num is unsupported'
>>> res.message
'found [1] replicas of same collection in target resource group[rgB_bSirIavj], dynamically increase replica num is unsupported'

Expected Behavior

the error msg report the correct rg name

Steps To Reproduce

1. transfer 1 replica to target rgA, it reports error msgs, says "the target rg name is rgB"

Milvus Log

No response

Anything else?

No response

yanliang567 commented 1 year ago

/assign @weiliu1031 /unassign

yanliang567 commented 1 year ago

verified on 2.2.0-20230224-ba9443d1