You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/05/11 09:07:05 UTC

[GitHub] [dubbo] jxplus opened a new issue, #10028: aused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 0.975511601s. [buffered_nanos=977255400, waiting_for_connection]

jxplus opened a new issue, #10028:
URL: https://github.com/apache/dubbo/issues/10028

   jdk:1.8
   dubbo:2.7.15
   协议:grpc
   
   写了个列表查询接口,
   provider端实现:
   ```java    
   public void list(SearchUserRequest request, StreamObserver<UserResponse> responseObserver) {
           users.forEach(c -> {
               UserResponse ur = 
               UserResponse.newBuilder().setId(c.getId()).setName(c.getName()).build();
               responseObserver.onNext(ur);
           });
           responseObserver.onCompleted();
       }
   ```
   consumer端调用:
   ```java
   SearchUserRequest request = SearchUserRequest.newBuilder().build();
           Iterator<UserResponse> responseIterator = userService.list(request);
           responseIterator.forEachRemaining(item -> {
               String str = String.format("user[id=%d, name=%s]", item.getId(), item.getName());
               System.out.println(str);
           });
   ```
   先启动provider,然后再起consumer,有时正常,有时还是报这个错,求解。
   
   _Originally posted by @jxplus in https://github.com/apache/dubbo/issues/6797#issuecomment-1123394458_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] jxplus closed issue #10028: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 0.975511601s. [buffered_nanos=977255400, waiting_for_connection]

Posted by GitBox <gi...@apache.org>.
jxplus closed issue #10028: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 0.975511601s. [buffered_nanos=977255400, waiting_for_connection]
URL: https://github.com/apache/dubbo/issues/10028


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] jxplus commented on issue #10028: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 0.975511601s. [buffered_nanos=977255400, waiting_for_connection]

Posted by GitBox <gi...@apache.org>.
jxplus commented on issue #10028:
URL: https://github.com/apache/dubbo/issues/10028#issuecomment-1123411589

   错误堆栈如下,
   java.lang.IllegalStateException: Failed to execute CommandLineRunner
   	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:772)
   	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:753)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:309)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
   	at com.mysteel.armoury.dubbo.example.Demo4ConsumerMain.main(Demo4ConsumerMain.java:14)
   Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 0.981708499s. [buffered_nanos=984285200, waiting_for_connection]
   	at io.grpc.Status.asRuntimeException(Status.java:533)
   	at io.grpc.stub.ClientCalls$BlockingResponseStream.hasNext(ClientCalls.java:648)
   	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
   	at com.mysteel.armoury.dubbo.example.UserServiceRunner.run(UserServiceRunner.java:28)
   	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:769)
   	... 5 common frames omitted


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org