-
Notifications
You must be signed in to change notification settings - Fork 5k
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] 初始化数据库出现错误'NoneType' object has no attribute 'drop' #1206
Comments
后续使用的时候,添加文件会报错,错误信息:
|
感谢反馈,这是个bug,我们会尽快修复。 |
后来在如下环境下也试了一下
初始化时候仍然会报
|
这个问题解决了,我查看代码发现如果milvus中指定名称的collection不存在,则在插入文档时会自动创建,所以测试 milvus_service文件中的测试代码没问题,但是如果是在初始化的时候,是先清除,再插入数据库,这时候milvus中collection还没建立(因为原本数据库中没有这个名字的collection,且未插入文档),解决方法如下:
或者在
但是如果实现建库,原本就存在可能会报错(没有尝试过),用上述方法已经解决问题了。 |
问题描述 / Problem Description
执行
python init_database.py --recreate-vs
时,出现错误,错误如下:复现问题的步骤 / Steps to Reproduce
milvus
预期的结果 / Expected Result
预期结果应该是没有报错
实际结果 / Actual Result
环境信息 / Environment Information
附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
The text was updated successfully, but these errors were encountered: