Comments (10)
When is the next SDK version expected to be released
from milvus-sdk-java.
Looks like the problem comes with the io.netty:netty-codec-http2
dependency!
By default Spring Boot 3.2.0 uses latest version: 4.1.101.Final
. Later cause the milvus client to crash with the above error.
My workaround was to downgrade io.netty:netty-codec-http2
to 4.1.100.Final
, by adding it explicitly to my pom:
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
<version>4.1.100.Final</version>
</dependency>
Additionally to avoid some security vulnerabilities caused by theoutdated milvus (grpc/netty) dependecies you can try this:
<dependency>
<groupId>io.milvus</groupId>
<artifactId>milvus-sdk-java</artifactId>
<version>2.3.3</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId>
<version>4.1.101.Final</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
<version>4.1.100.Final</version>
</dependency>
hope this helps.
from milvus-sdk-java.
我也遇到了,springboot 3.1.5 正常 3.1.6 和 3.2.0 就不正常了
from milvus-sdk-java.
I can confirm it as well! Milvus Java client is unusable (for me) at the moment.
UPDATE: see my workaround below.
from milvus-sdk-java.
/assign @yhmo
could you help on this one?
I guess this is due to some dependency issue
from milvus-sdk-java.
To support TLS connection, java sdk introduces a dependency grpc-netty from v2.2.10: https://github.com/milvus-io/milvus-sdk-java/blob/master/src/main/java/io/milvus/client/MilvusServiceClient.java#L93
In the Java sdk pom.xml we can see:
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>${grpc.version}</version>
</dependency>
The version of grpc-netty is consistent with the grpc lib version. Milvus is using grpc 1.46 to build sdk for client-side and api for server-side, so we can't change this version.
This error is caused by incompatible versions of user's pre-installed netty lib and the java sdk grpc-netty lib. So far I don't have a perfect solution to fix it. Thanks @tzolov for the workaround.
from milvus-sdk-java.
Link to grpc/grpc-java#10665
The grpc-java 1.59.1 contains the fix: https://github.com/grpc/grpc-java/releases/tag/v1.59.1
from milvus-sdk-java.
I have verified that upgrading the java sdk's grpc dependency from 1.46 to 1.59.1 can avoid these errors.
I need to do some testing. I will upgrade grpc version to 1.59.1 in the next sdk version if no compatible issues are found.
from milvus-sdk-java.
The #713 and #713 has upgraded the grpc to 1.59.1
from milvus-sdk-java.
When is the next SDK version expected to be released
2.3.4 already released
from milvus-sdk-java.
Related Issues (20)
- How to truncate all collection data HOT 2
- How to set default values for scalar fields HOT 2
- Does it support transactions HOT 1
- 2.3版本sdk和xxxjob有jar包冲突 HOT 9
- ANN 查询数据 id返回值错误 HOT 3
- [V2]-CreateCollection with collection schema throw NullPointerException HOT 1
- [v2]-create partition throw NullPointerException HOT 1
- [V2]--Create index Error:CreateIndexRequest collectionName:Collection_PKpEF4kxil, fieldName:fieldFloatVector failed, error code: 2, reason: efConstruction out of range: [1, 2147483647]
- [V2]--Upsert Error: error code: 2, reason: the number of fields is less than needed: invalid parameter[expected=9][actual=8] HOT 1
- [V2]--Delete by expr("id<100"),return deleteCnt=0 HOT 1
- [v2][describeIndex]--No matter what value fieldName passes in,always return vector index info HOT 1
- [v2][createIndex]--Create scalar index throw exception:'index type not match: invalid parameter[expected=Trie][actual=TRIE]' HOT 1
- [v2][query]--Query by ambiguous filter parameter,return error result HOT 1
- [v2][search]--Suffix matching is not supported,failed to create query plan: cannot parse expression: fieldVarchar like "%0"
- [v2][createCollection]--Unable to set up shard num when creating collection. HOT 1
- [v2][LoadCollection]--PartitionName param should not appear in loadCollection api。 HOT 2
- How to use search scores as return constraints HOT 1
- Why ReleaseCollectionParam without withDatabaseName function? HOT 2
- Attu可以连接到Milvus,但java连接调用milvus报错? HOT 21
- milvus_client 是否支持spring 单bean管理后,并发请求? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milvus-sdk-java.