milvus-backup
milvus-backup copied to clipboard
数据备份,通过API指定db_collections参数时,请求报错
Current Behavior
swagger ui的接口文档中,Create backup的接口文档有如下参数,支持指定数据库名称db_collections
{ "async": true, "backup_name": "string", "collection_names": [ "string" ], "db_collections": "string", "force": true, "gc_pause_address": "string", "gc_pause_enable": true, "gc_pause_seconds": 0, "meta_only": true, "requestId": "string" }
执行如下备份请求时 curl --location --request POST 'http://xxx/api/v1/create' --header 'Content-Type: application/json' --data '{ "async": false, "backup_name": "charai_hello_backup", "collection_names": ["hello_backup"], "db_collections": "char_ai"}
请求报错: {"requestId":"bcd37f6e-384e-11ef-acbe-0cda411d1468","code":3,"msg":"ReadMapCB: expect { or n, but found c, error found in #1 byte of ...|char_ai|..., bigger context ...|char_ai|...","data":{"id":"bcd37f6e-384e-11ef-acbe-0cda411d1468","state_code":3,"errorMessage":"ReadMapCB: expect { or n, but found c, error found in #1 byte of ...|char_ai|..., bigger context ...|char_ai|...","start_time":1719909629839,"name":"charai_hello_backup2","size":0,"milvus_version":"v2.3.10"}}
Expected Behavior
正常备份指定数据库名称下的collections
Steps To Reproduce
Milvus standalone: v2.3.10
Milvus_backup :v0.4.16
Environment
No response
Anything else?
No response