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]: Even if the correct indexName is passed, the indexes/alter_properties restful api still reports an error: index name is empty: invalid parameter #38967

Open
1 task done
zhuwenxing opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels
feature/restful v2 kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@zhuwenxing
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version:master-20250102-d3a5282e-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

[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/collections/create HTTP/1.1" 200 20 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/collections/create, 
cost time: 0.06847381591796875, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE",
    "schema": {
        "fields": [
            {
                "fieldName": "book_id",
                "dataType": "Int64",
                "isPrimary": true,
                "elementTypeParams": {}
            },
            {
                "fieldName": "word_count",
                "dataType": "Int64",
                "elementTypeParams": {}
            },
            {
                "fieldName": "book_describe",
                "dataType": "VarChar",
                "elementTypeParams": {
                    "max_length": "256"
                }
            },
            {
                "fieldName": "book_intro",
                "dataType": "FloatVector",
                "elementTypeParams": {
                    "dim": "128"
                }
            }
        ]
    },
    "params": {
        "consistencyLevel": "Strong"
    }
}, 
response: {"code":0,"data":{}} (milvus.py:78)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: Starting new HTTP connection (1): 10.104.32.212:19530 (connectionpool.py:246)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/indexes/list HTTP/1.1" 200 20 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/indexes/list, 
cost time: 0.032045841217041016, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "dbName": "default",
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE"
}, 
response: {"code":0,"data":[]} (milvus.py:78)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: Starting new HTTP connection (1): 10.104.32.212:19530 (connectionpool.py:246)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/indexes/create HTTP/1.1" 200 20 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/indexes/create, 
cost time: 0.03273510932922363, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE",
    "indexParams": [
        {
            "fieldName": "book_intro",
            "indexName": "book_intro_vector",
            "metricType": "COSINE",
            "indexType": "IVF_SQ8",
            "params": {
                "nlist": 16384
            }
        }
    ],
    "dbName": "default"
}, 
response: {"code":0,"data":{}} (milvus.py:78)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: Starting new HTTP connection (1): 10.104.32.212:19530 (connectionpool.py:246)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/indexes/list HTTP/1.1" 200 39 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/indexes/list, 
cost time: 0.031265974044799805, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "dbName": "default",
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE"
}, 
response: {"code":0,"data":["book_intro_vector"]} (milvus.py:78)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: Starting new HTTP connection (1): 10.104.32.212:19530 (connectionpool.py:246)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/indexes/describe HTTP/1.1" 200 208 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/indexes/describe, 
cost time: 0.04380679130554199, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "dbName": "default",
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE",
    "indexName": "book_intro_vector"
}, 
response: {"code":0,"data":[{"failReason":"","fieldName":"book_intro","indexName":"book_intro_vector","indexState":"Finished","indexType":"IVF_SQ8","indexedRows":0,"metricType":"COSINE","pendingRows":0,"totalRows":0}]} (milvus.py:78)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: Starting new HTTP connection (1): 10.104.32.212:19530 (connectionpool.py:246)
[2025-01-03 10:27:56 - DEBUG - urllib3.connectionpool]: http://10.104.32.212:19530 "POST /v2/vectordb/indexes/alter_properties HTTP/1.1" 200 64 (connectionpool.py:475)
[2025-01-03 10:27:56 - DEBUG - ci_test]: 
method: post, 
url: http://10.104.32.212:19530/v2/vectordb/indexes/alter_properties, 
cost time: 0.0281829833984375, 
header: {'Content-Type': 'application/json', 'Authorization': 'Bearer None', 'RequestId': '56bc5f08-c97a-11ef-b5f9-acde48001122'}, 
payload: {
    "collectionName": "test_collection_2025_01_03_10_27_55_059282YoUjRgjE",
    "indexName": "book_intro_vector",
    "properties": {
        "mmap.enabled": true
    }
}, 
response: {"code":1100,"message":"index name is empty: invalid parameter"} (milvus.py:82)
FAILED
testcases/test_collection_operations.py:1559 (TestCollectionProperties.test_alter_index_properties)
1100 != 0

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

log.log

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 Jan 3, 2025
@zhuwenxing zhuwenxing changed the title [Bug]: Even if the correct indexName is passed, the indexes/alter_properties interface still reports an error: index name is empty: invalid parameter [Bug]: Even if the correct indexName is passed, the indexes/alter_properties restful api still reports an error: index name is empty: invalid parameter Jan 3, 2025
@zhuwenxing
Copy link
Contributor Author

/unassign @yanliang567
/assign @smellthemoon

@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 Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/restful v2 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