[Issue] Unable to connect to milvus v2.4.4
Closed this issue · 1 comments
Hello everyone, I have migrated to milvus v2.4.4 from v2.3.4.
After mivlus sdk update to 2.4.0, I am not able to connect to the cluster. The cluster is accessible from other platforms.
Here is the code snippet I am using
MilvusServiceClient milvusClient = new MilvusServiceClient(ConnectParam.newBuilder() .withPort(milvusClientProperties.getPort()).withHost(milvusClientProperties.getHost()) .withAuthorization(milvusClientProperties.getUsername(), milvusClientProperties.getPassword()) .build());
milvus.client.host=35.198.221.89
milvus.client.port=19530
milvus.client.username=root
milvus.client.password=Milvus
milvus.client.timeoutInMS=80000
Error statck trace
i.g.s.ClientCalls$ThreadlessExecutor.runQuietly:744 : Runnable threw exceptionio.grpc.StatusRuntimeException: INTERNAL: Failed to frame message at io.grpc.Status.asRuntimeException(Status.java:529) at io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:154) at io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:66) at io.grpc.internal.ForwardingClientStream.writeMessage(ForwardingClientStream.java:37) at io.grpc.internal.DelayedStream$6.run(DelayedStream.java:283) at io.grpc.internal.DelayedStream.drainPendingCalls(DelayedStream.java:182) at io.grpc.internal.DelayedStream.access$100(DelayedStream.java:44) at io.grpc.internal.DelayedStream$4.run(DelayedStream.java:148) at io.grpc.stub.ClientCalls$ThreadlessExecutor.runQuietly(ClientCalls.java:742) at io.grpc.stub.ClientCalls$ThreadlessExecutor.waitAndDrain(ClientCalls.java:725) at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:159) at io.milvus.grpc.MilvusServiceGrpc$MilvusServiceBlockingStub.connect(MilvusServiceGrpc.java:4593) at io.milvus.client.MilvusServiceClient.connect(MilvusServiceClient.java:384) at io.milvus.client.MilvusServiceClient.lambda$new$0(MilvusServiceClient.java:150) at io.milvus.client.MilvusServiceClient.retry(MilvusServiceClient.java:290) at io.milvus.client.MilvusServiceClient.<init>(MilvusServiceClient.java:150) at com.gdn.x.search.configs.milvus.MilvusClientConfig.getMilvusClient(MilvusClientConfig.java:39) at com.gdn.x.search.configs.milvus.MilvusClientConfig$$EnhancerBySpringCGLIB$$e010d4f5.CGLIB$getMilvusClient$0(<generated>) at com.gdn.x.search.configs.milvus.MilvusClientConfig$$EnhancerBySpringCGLIB$$e010d4f5$$FastClassBySpringCGLIB$$329790ea.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at com.gdn.x.search.configs.milvus.MilvusClientConfig$$EnhancerBySpringCGLIB$$e010d4f5.getMilvusClient(<generated>) at com.gdn.x.search.configs.milvus.MilvusClientConfig$$FastClassBySpringCGLIB$$d3cd11f8.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89) at com.gdn.x.search.integration.impl.AOPLogger.logTimeMethod(AOPLogger.java:22) at jdk.internal.reflect.GeneratedMethodAccessor73.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at com.gdn.x.search.configs.milvus.MilvusClientConfig$$EnhancerBySpringCGLIB$$b9764a0e.getMilvusClient(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
Issue resolved, came to know that other depency was using protobuf v3.19, switching to 3.24 resolved the issue.