Re: [grpc-io] Grpc Java server test for ServerInterceptors

2023-11-07 Thread 'Larry Safran' via grpc.io
Hi Edu, Yes, that implementation looks good. We have an example that does something similar: https://github.com/grpc/grpc-java/tree/master/examples/example-oauth ServerInterceptors are called sequentially by a single thread, so it will be thread safe. Additionally, Context objects are

Re: [grpc-io] Re: grpc C++ unit testing rpc services

2023-11-07 Thread 'Eugene Ostroukhov' via grpc.io
I would advise against mocking internal interfaces. That may make the tests increasingly brittle when you update gRPC version. Also, it may reduce the test coverage. On Tue, Nov 7, 2023 at 12:48 PM smita deshpande wrote: > I am thinking of mocking the interface grpc::internal:: >

[grpc-io] Grpc Java server test for ServerInterceptors

2023-11-07 Thread Eduwer Camacaro
Hi Grpc team! I have a ServerInterceptor instance for my grpc server, it does something like this: @Override public ServerCall.Listener interceptCall( ServerCall call, Metadata headers, ServerCallHandler next) { Context context = Context.current(); // more

[grpc-io] Re: grpc C++ unit testing rpc services

2023-11-07 Thread smita deshpande
I am thinking of mocking the interface grpc::internal:: ServerAsyncStreamingInterface in case of testing async server. So it would become possible to even use google Unit tests. I am having simple hello world unary call. However, I do not want to run server and test the SayHello RPC service

[grpc-io] Re: grpc C++ unit testing rpc services

2023-11-07 Thread 'Eugene Ostroukhov' via grpc.io
This is an open-ended question and depends a lot on the granularity of the tests you want. We have unit tests that test the service class directly. Sometimes we start a service on a background thread and then connect to it from the test. There is no premade test harness that I know of. This is

[grpc-io] Re: grpc c++ write log to file

2023-11-07 Thread 'Eugene Ostroukhov' via grpc.io
I am not sure what request_id you mean. You may get textual representation of the request or response by calling the DebugString message. ABSL log also has built-in support for proto messages: ::envoy::service::discovery::v3::DiscoveryRequest req; req.add_resource_names("aaa");

[grpc-io] gRPC C++ deadlock in Shutdown() on server-side

2023-11-07 Thread Ilya Lukin
Hi! I'm using long-lived grpc streaming for sending notifications from a server to applications. A client subscribes for particular notifications and then the server sends them back to the client. When some server event occurs, clients

Re: [grpc-io] gRPC client fallback from load-balancer to round robin DNS endpoint on LB outage

2023-11-07 Thread Krishna Sai Veera Reddy
Will take a look. Thank you Larry and Terry! Much appreciated! On Monday, November 6, 2023 at 4:10:09 PM UTC-8 Terry Wilson wrote: > Krishna, > > I'll mention that we also have a short guide on custom LBs > that can help you > with the

[grpc-io] I AM OFFERING YOU FREE SAMPLES FOR COUNTERFEIT BANK NOTES Whatsapp:+1(919) 307-5986)/(+639950791362) FACE TO FACE DEALS 100% LEGIT BUY QUALITY BANK NOTES TOP CURRENCIES AVAILABLE Whatsapp:+

2023-11-07 Thread Buy Counterfeit
I AM OFFERING YOU FREE SAMPLES FOR COUNTERFEIT BANK NOTES Whatsapp:+1(919) 307-5986)/(+639950791362) FACE TO FACE DEALS 100% LEGIT BUY QUALITY BANK NOTES TOP CURRENCIES AVAILABLE Whatsapp:+1(919) 307-5986)/(+639950791362)GET YOUR VALID DOCUMENTS TO