milvus-io / milvus

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

[Bug]: loadpatition block #22803

Closed hotwinters closed 1 year ago

hotwinters commented 1 year ago

Is there an existing issue for this?

Environment

- Milvus version:
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):go最新的
- OS(Ubuntu or CentOS): windows
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

在尝试使用goSDk,loadpatition加载一个分区的时候,发现线程卡住了,调试进去看发现卡在select里,inmemorypercentages一直为nil,导致持续循环,此时我断开连接,再次打开但不再加载分区,发现能够成功搜索,和释放分区,也就是之前分区加载已经成功了,但不清楚为什么

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

xiaofan-luan commented 1 year ago

/assign @bigsheeper

bigsheeper commented 1 year ago

Hello, @hotwinters could you tell me of the version of Milvus you are using? Additionally, could you please provide me with the Milvus log? If you are unsure of how to export the Milvus log, you may refer to this guide. Thank you very much.

hotwinters commented 1 year ago

2.2version ,日志明天上午能够提供给您

hotwinters commented 1 year ago

@bigsheeper 日志文件太大了,我应该怎么调整日志的输出内容呀,以及想知道清空日志这些操作应该怎么做

bigsheeper commented 1 year ago

@bigsheeper 日志文件太大了,我应该怎么调整日志的输出内容呀,以及想知道清空日志这些操作应该怎么做

If you're deploying with k8s, Milvus will automatically do log retension.

bigsheeper commented 1 year ago

@hotwinters No worries, I belive I have located the issue and will fix it promptly.

hotwinters commented 1 year ago

@bigsheeper ok. thanks

bigsheeper commented 1 year ago

Milvus Go SDK still uses ShowCollection and ShowPartitions to check the load state.However, ShowPartition does not assign the Type field to ShowType_InMemory, resulting in the ShowPartition request not being sent to QueryCoord.

Fix: now, ShowCollection and ShowPartitions are deprecated for checking load state, we should use GetLoadingProgress instead, as in pymilvus.

hotwinters commented 1 year ago

ok,学到了,我先部署下k8s,然后进行下一步的学习

yanliang567 commented 1 year ago

close this issue for now. please feel free to file a new issue, if any probelms