Giter Club home page Giter Club logo

Comments (10)

ysr1127 avatar ysr1127 commented on June 25, 2024 3

When is the next SDK version expected to be released

from milvus-sdk-java.

tzolov avatar tzolov commented on June 25, 2024 1

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.

xkaaaaaa avatar xkaaaaaa commented on June 25, 2024

我也遇到了,springboot 3.1.5 正常 3.1.6 和 3.2.0 就不正常了

from milvus-sdk-java.

tzolov avatar tzolov commented on June 25, 2024

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.

xiaofan-luan avatar xiaofan-luan commented on June 25, 2024

/assign @yhmo
could you help on this one?
I guess this is due to some dependency issue

from milvus-sdk-java.

yhmo avatar yhmo commented on June 25, 2024

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.

yhmo avatar yhmo commented on June 25, 2024

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.

yhmo avatar yhmo commented on June 25, 2024

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.

yhmo avatar yhmo commented on June 25, 2024

The #713 and #713 has upgraded the grpc to 1.59.1

from milvus-sdk-java.

yhmo avatar yhmo commented on June 25, 2024

When is the next SDK version expected to be released

2.3.4 already released

from milvus-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.