Re: [grpc-io] grpc java biDirectional streaming client retry when onError is called

2018-09-26 Thread jimmy . hsu . ruckus
Hi, 

I have the same question. How do I know the messages have delivered to the 
server side?
The client can get and store all messages in the interceptor. However I 
can't get any error if the connection has any problem.

Observer.onError can't get any information about sent messages.


On Tuesday, September 25, 2018 at 12:18:56 AM UTC+8, Spencer Fang wrote:
>
> gRPC does not store messages that are already sent, so you would have to 
> store that message by yourself somewhere. I think you would also need to do 
> this for ongoing RPCs as well because there may be 1 or more messages sent 
> by the client when the server is killed.
>
> On Fri, Sep 21, 2018 at 1:50 PM > wrote:
>
>> Hi, 
>>
>> My project uses gRPC bi-directional streaming call. We are not using grpc 
>> LB, but have our own logic implemented to select which server. So when I 
>> kill one of the server, client StreamObserver.onError is called and the 
>> original message is lost. 
>>
>> I just wonder is there anyway to obtain the original message, so that we 
>> can re-select another server to retry?
>>
>> Thanks a lot!
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to grpc-io+u...@googlegroups.com .
>> To post to this group, send email to grp...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/grpc-io.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/5c0e5c0c-eb5c-4fe1-a110-55da5f8fd6f3%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Spencer Fang
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/76549ede-27f9-47a1-a5be-c5ac918854a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] grpc java biDirectional streaming client retry when onError is called

2018-09-24 Thread 'Spencer Fang' via grpc.io
gRPC does not store messages that are already sent, so you would have to
store that message by yourself somewhere. I think you would also need to do
this for ongoing RPCs as well because there may be 1 or more messages sent
by the client when the server is killed.

On Fri, Sep 21, 2018 at 1:50 PM  wrote:

> Hi,
>
> My project uses gRPC bi-directional streaming call. We are not using grpc
> LB, but have our own logic implemented to select which server. So when I
> kill one of the server, client StreamObserver.onError is called and the
> original message is lost.
>
> I just wonder is there anyway to obtain the original message, so that we
> can re-select another server to retry?
>
> Thanks a lot!
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/5c0e5c0c-eb5c-4fe1-a110-55da5f8fd6f3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Spencer Fang

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAK%3D-x_5AN7YXMmd%3DC97w%3DntwF3whD7NM%2BEaPQ6SQNdOZzHTo6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] grpc java biDirectional streaming client retry when onError is called

2018-09-21 Thread eleanore . jin
Hi, 

My project uses gRPC bi-directional streaming call. We are not using grpc 
LB, but have our own logic implemented to select which server. So when I 
kill one of the server, client StreamObserver.onError is called and the 
original message is lost. 

I just wonder is there anyway to obtain the original message, so that we 
can re-select another server to retry?

Thanks a lot!


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/5c0e5c0c-eb5c-4fe1-a110-55da5f8fd6f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.