Skip to content
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

Need to upgrade the related gRPC dependencies. #124

Closed
zxh opened this issue Jan 14, 2020 · 0 comments · Fixed by #130
Closed

Need to upgrade the related gRPC dependencies. #124

zxh opened this issue Jan 14, 2020 · 0 comments · Fixed by #130
Labels
exp/beginner Something most people could solve. status/accepted We were able to reproduce the issue and accept to work on it status/needs-attention The issue needs more eyes on it, more investigation might be required before accepting/rejecting it

Comments

@zxh
Copy link

zxh commented Jan 14, 2020

Hi, I have met some grpc errors when I using dgraph4j: 2.0.2 and protobuf-java: 3.7.1.

The error:

Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Connection closed while performing protocol negotiation for [HttpClientCodec#0, HttpProxyHandler#0, ProtocolNegotiators$WaitUntilActiveHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]

And the solution is to exclude the old version of grpc dependencies in dgraph4j and added the new versions. For dgraph4j: 2.0.2 version, we could do this at pom.xml:

...
    <dependency>
      <groupId>com.google.protobuf</groupId>
      <artifactId>protobuf-java</artifactId>
      <version>3.11.1</version>
    </dependency>

    <dependency>
      <groupId>io.dgraph</groupId>
      <artifactId>dgraph4j</artifactId>
      <version>2.0.2</version>
      <exclusions>
        <exclusion>
          <groupId>io.grpc</groupId>
          <artifactId>grpc-protobuf</artifactId>
        </exclusion>
        <exclusion>
          <groupId>io.grpc</groupId>
          <artifactId>grpc-stub</artifactId>
        </exclusion>
        <exclusion>
          <groupId>io.grpc</groupId>
          <artifactId>grpc-netty</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-protobuf</artifactId>
      <version>1.26.0</version>
    </dependency>
    <dependency>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-stub</artifactId>
      <version>1.26.0</version>
    </dependency>
    <dependency>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-netty</artifactId>
      <version>1.26.0</version>
    </dependency>

...

The detail info about the issue: https://discuss.dgraph.io/t/dgraph4j-using-java-client-connect-to-dgraph-alpha-failed-docker-on-aws-ec2/5829

I think we could upgrade the related dependencies in dgrap4j to avoid this same problems.

Thanks.

@MichelDiz MichelDiz added exp/beginner Something most people could solve. status/needs-attention The issue needs more eyes on it, more investigation might be required before accepting/rejecting it labels Jan 14, 2020
@lgalatin lgalatin added the status/accepted We were able to reproduce the issue and accept to work on it label Jan 24, 2020
mangalaman93 added a commit that referenced this issue Feb 13, 2020
mangalaman93 added a commit that referenced this issue Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/beginner Something most people could solve. status/accepted We were able to reproduce the issue and accept to work on it status/needs-attention The issue needs more eyes on it, more investigation might be required before accepting/rejecting it
Development

Successfully merging a pull request may close this issue.

3 participants