milvus-backup icon indicating copy to clipboard operation
milvus-backup copied to clipboard

[Bug]: Command 和 Server 返回值问题

Open maber1993 opened this issue 1 year ago • 5 comments

Current Behavior

Version: image

  • 使用Command 时我需要知道备份是否成功,当我执行完指令后使用$?获取状态码时他总是 0
  • 使用 Servers 时 /create 只有在失败时候才会返回code,对程序进行异常判断非常不友好;

Expected Behavior

  • Command 模式下,状态码真是反应备份的成功与失败,而不是仅仅程序调用的结果
  • Servers 所有接口都能正常返回code,特别当我使用/create 异步备份async:true 时,期望和async:false保持一致,通过state_code 去判断备份状态即可

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

maber1993 avatar Nov 20 '23 09:11 maber1993