Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

milvus_client 是否支持spring 单bean管理后,并发请求? #793

Open
marinjia opened this issue Mar 8, 2024 · 3 comments
Open

milvus_client 是否支持spring 单bean管理后,并发请求? #793

marinjia opened this issue Mar 8, 2024 · 3 comments

Comments

@marinjia
Copy link

marinjia commented Mar 8, 2024

milvus_client 是否支持spring 单bean管理后,并发请求?

@yhmo
Copy link
Contributor

yhmo commented Mar 12, 2024

已经有人把milvus java sdk用在springboot里了。MilvusServiceClient底下依赖于grpc的实现,所有远程接口的调用由grpc保证其线程安全性,可以用多线程并发。

@windylcx
Copy link

windylcx commented Jun 4, 2024

并发测试写入同样的数据会报错:

2024-06-04 11:38:02.064 INFO 3533245 --- [io-8080-exec-36] c.n.m.r.i.controller.TestController : insertData err,
resp:InsertVectorResp(req=InsertReq(
data=[
{"vector":[0.5561,3.123,1.8],"id":8720456105506783652},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783653},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783654},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783655},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783656},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783657},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783658},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783659},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783660},
{"vector":[0.5561,3.123,1.8],"id":8720456105506783661}
],
collectionName=mail_rag_index,
partitionName=partition_0
),
resp=null,
ex=io.milvus.v2.exception.MilvusClientException: float vector field 'vector' is illegal,
array type mismatch: invalid parameter[expected=need float vector][actual=got nil])

@xiaofan-luan
Copy link
Contributor

seems like it's a field mismatch. DId you sure the vector field is named vector?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants