[grpc-io] gRPC-Java v1.63.1 Released

2024-05-17 Thread 'Sergii Tkachenko' via grpc.io
The v1.63.1 release is now available. *Bug fixes* - netty: Release SendGrpcFrameCommand when stream is missing (#6) (fb9a10809) - Change defaults to use the older PickFirstLoadBalancer and disable Happy Eyeballs. Thi

[grpc-io] Re: grpc Stream creation

2024-03-20 Thread 'Sergii Tkachenko' via grpc.io
Ok, I might've went a bit to much into the weeds of HTTP streams with my answer. > 1. when the program calls streamClientSender1.onNext(request), request will be sent in a stream, if I call it again will it be in the same stream as long as the age of the stream is within max connection age ? Fi

[grpc-io] Re: grpc Stream creation

2024-03-19 Thread 'Sergii Tkachenko' via grpc.io
Hey Darshan, Right now I'm not entirely sure I'll be able to answer your question with absolute confidence. I'd like to say "yes, stream is created on first headers sent, and stream id not going to change until RPC dies", but there might be some nuances depending on the transport used, f.e. Net

[grpc-io] Re: gRPC Java server fails under load tester after a few days

2024-03-19 Thread 'Sergii Tkachenko' via grpc.io
Hey Edvard, Take a look at this thread: https://github.com/grpc/grpc-java/issues/4544. > Panic is legitimate here. If the executor queue is full, the channel can't submit any work to it. It can't even fail the RPC, because the executor can't even run ClientCall.Listener.onClose(). Logging alone

[grpc-io] Re: [gRPC-Java] Pass context or header information to parseRequest on server side

2024-02-21 Thread 'Sergii Tkachenko' via grpc.io
Thank you for the detailed explanation. Since the only thing you need is the method name, consider adding a methodName parameter to your marshaller class. Then, when building the service definition, you can create an instance of your marshaller per method, and provide the method name as a const

[grpc-io] Re: [gRPC-Java] Pass context or header information to parseRequest on server side

2024-02-15 Thread 'Sergii Tkachenko' via grpc.io
You are correct, the Marshaller won't be able to access the Context from the interceptor. Though not exactly for the reasons you mentioned. Unmarshalling happens prior to `ServerCall.Listener.onMessage` callback is executed: 1. io.grpc.MethodDescriptor.Marshaller unmarshaller the message --> 2.

[grpc-io] gRPC-Java v1.61.0 Released

2024-01-12 Thread 'Sergii Tkachenko' via grpc.io
The v1.61.0 release is now available. *API Changes* - Remove unused experimental API ManagedChannelBuilder.enableFullStreamDecompression (#10744 ) - api: Deprecate LoadBalancer.

Re: [grpc-io] ./protoc-gen-grpc-java-1.59.0-osx-aarch_64.exe: Bad CPU type in executable

2023-11-21 Thread 'Sergii Tkachenko' via grpc.io
More information is available in the ticket filed for this exect issue: https://github.com/grpc/grpc-java/issues/7690 On Saturday, November 18, 2023 at 12:52:08 PM UTC-8 Bela Ban wrote: > Meanwhile, I found that installing Rosetta fixed the issue. But I'm still > wondering why the executables

[grpc-io] Re: Grpc Server(C++) cause "stack around the variable 'true_factory' was corrupted"

2023-11-21 Thread 'Sergii Tkachenko' via grpc.io
For posterity: Looks like another conversation was filed. https://groups.google.com/g/grpc-io/c/31GYsJii5F0 On Tuesday, November 21, 2023 at 10:16:39 AM UTC-8 Sergii Tkachenko wrote: > That Stack Overflow link seems to be gone, may I ask you to provide more > details? > > On Monday, November 2

[grpc-io] Re: Grpc Server(C++) cause "stack around the variable 'true_factory' was corrupted"

2023-11-21 Thread 'Sergii Tkachenko' via grpc.io
That Stack Overflow link seems to be gone, may I ask you to provide more details? On Monday, November 20, 2023 at 12:53:04 PM UTC-8 Gerd wrote: > Hi, > > did you solve this issue? > > I get the same exception > > On Saturday, April 29, 2023 at 10:18:07 AM UTC+2 TANA LEE wrote: > >> The code is i

[grpc-io] gRPC-Java v1.56.0 Released

2023-06-14 Thread 'Sergii Tkachenko' via grpc.io
The v1.56.0 release is now available. *API Changes* - api: Stabilize the SynchronizationContext class (#10130 ). - api: Stabilize io.grpc.CallCredentials (#10208

[grpc-io] Re: gRPC performance (Java)

2023-01-03 Thread 'Sergii Tkachenko' via grpc.io
s/first request/first requests/ On Tuesday, January 3, 2023 at 2:57:21 PM UTC-8 Sergii Tkachenko wrote: > Just an idea - did you try to run `ghz` with the `--async` flag. It might > make sense to play around with `--skipFirst` flag as well, so that first > request to not pre-warmed JVM do not b

[grpc-io] Re: gRPC performance (Java)

2023-01-03 Thread 'Sergii Tkachenko' via grpc.io
Just an idea - did you try to run `ghz` with the `--async` flag. It might make sense to play around with `--skipFirst` flag as well, so that first request to not pre-warmed JVM do not bias the result. Also - looks like REST wrk benchmark uses 400 connections, while gRPC ghz just one? Consider tr

[grpc-io] gRPC-Java v1.51.0 Released

2022-11-18 Thread 'Sergii Tkachenko' via grpc.io
The v1.51.0 release is now available. *Bug Fixes* - grpclb: Fix a debug logging message which incorrectly logged loadbalancer addresses under backend addresses. (#9602 ) *New Feat

[grpc-io] Re: Alpine package for `grpc-cli` is broken in alpine 3.16

2022-11-03 Thread 'Sergii Tkachenko' via grpc.io
IRRC we don't publish any packages to the alpine repo (see supported platforms ), alpine folks do it on their own. grpc-cli package is not available for alpine 3.16 (see https://pkgs.alpinelinux.org/packages?name=grpc-cli&br

[grpc-io] Re: [grpc-Java] Best way to async client

2022-10-20 Thread 'Sergii Tkachenko' via grpc.io
Greetings to you too! A good place to start is Bidirectional streaming RPC sections of gRPC Java basic tutorial . Next, there are blog posts So You Want to Optimize gRPC - Part 1 and So You Want to Optimi

[grpc-io] Re: gRPC-Java v1.45.2 Released

2022-10-18 Thread 'Sergii Tkachenko' via grpc.io
Correction: updated release notes . In the previous announcement I missed some items that were backported, but not released. *Bug Fixes* - xds: fix bugs in ring-hash load balancer picking subchannel behavior per gRFC. The bug may

[grpc-io] Re: gRPC-Java v1.44.2 Released

2022-10-18 Thread 'Sergii Tkachenko' via grpc.io
Correction: updated release notes . In the previous announcement I missed some items that were backported, but not released. *Bug Fixes* - netty: Fixed incompatibility with Netty 4.1.75.Final that caused COMPRESSION_ERROR (#9004

[grpc-io] gRPC-Java v1.45.2 Released

2022-10-10 Thread 'Sergii Tkachenko' via grpc.io
The v1.45.2 release is now available *Dependencies* - Bump protobuf to 3.19.6 -- 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

[grpc-io] gRPC-Java v1.44.2 Released

2022-10-10 Thread 'Sergii Tkachenko' via grpc.io
The v1.44.2 release is now available *Dependencies* - Bump protobuf to 3.19.6 -- 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

[grpc-io] Re: MpscUnboundedArrayQueue.poll Infinite Loop

2022-08-27 Thread 'Sergii Tkachenko' via grpc.io
This could be related to this issue: https://github.com/netty/netty/issues/10851. If so, upgrading to latest gRPC with netty >= 4.1.56.Final should help. On Tuesday, August 16, 2022 at 1:19:37 PM UTC-7 Sergii Tkachenko wrote: > I think this is the same issue as this one: > https://github.com/gr

[grpc-io] Re: MpscUnboundedArrayQueue.poll Infinite Loop

2022-08-16 Thread 'Sergii Tkachenko' via grpc.io
I think this is the same issue as this one: https://github.com/grpc/grpc-java/issues/2832. Otherwise, could you please provide more info? gRPC/netty versions? On Thursday, August 11, 2022 at 12:56:35 AM UTC-7 zoud...@gmail.com wrote: > now all grpc-default-worker-ELG threads happens below stack:

[grpc-io] Re: gRPC-Java: How to catch StatusRuntimeException on Server side

2022-07-26 Thread 'Sergii Tkachenko' via grpc.io
Hey Xiaojun, As far as I understand, this happens down the stack, before your server handlers are triggered. And it's normal for gRPC to fail RPC on errors, including demarshalling errors. What you'd need is to insert your code prior to protobuf getting unpacked, and handle it manually. Take a

[grpc-io] Re: Handler for koltion

2022-07-26 Thread 'Sergii Tkachenko' via grpc.io
Hey Luis, HttpHandler us purely a c# interface, and not a part of gRPC. There won't be an 1:1 analogue in other languages. However - as far as I see from the code, they want you to use HttpClientHandler.DangerousAcceptAnyServerCertificateValidator

[grpc-io] gRPC-Java 1.47.0 Released

2022-06-02 Thread 'Sergii Tkachenko' via grpc.io
gRPC Java 1.47.0 is released and is available on Maven Central. https://github.com/grpc/grpc-java/releases/tag/v1.47.0 *Bug Fixes* - api: Ignore ClassCastExceptions for hard-coded providers on Android ( #9174 ). This avoids ServiceConfigurati

[grpc-io] Re: unable to access context value.

2022-01-25 Thread 'Sergii Tkachenko' via grpc.io
On line 3, you're inspecting a value of a context key, Context.Key. On its own, the key is not bound to any specific context. Many different Context can use the same Context key, and each can set its own value for this key. Line 5 is executed within the specific context you created (created on l

[grpc-io] gRPC-Java 1.42.0 Released

2021-11-05 Thread 'Sergii Tkachenko' via grpc.io
gRPC Java 1.42.0 is released and is available on Maven Central. https://github.com/grpc/grpc-java/releases/tag/v1.42.0 In this release we drop support for Android API level 18 or lower (Jelly Bean or earlier), following Google Play Service’s discontinued updates for Jelly Bean (API levels 16, 17

[grpc-io] Re: Accessing Current Connections to Server

2021-10-06 Thread 'Sergii Tkachenko' via grpc.io
Hi Nic, > I was wondering if there is a way to access the connection information of the server in order to see how many connections the server is currently responding to One way that comes to mind is adding channelz

[grpc-io] Re: 2 way communication over single tcp connection

2021-07-21 Thread 'Sergii Tkachenko' via grpc.io
Hey Kumar, Interesting question! As I understand, your plan is for gRPC servers to initiate a TCP connection to nginx from their side. This is needed because incoming connections are blocked by a firewall, so gRPC servers must initiate outgoing connection first. Could you please clarify a coup

[grpc-io] Re: greeter_client in airflow throwing error

2021-07-21 Thread 'Sergii Tkachenko' via grpc.io
Hey Smita, This is a generic error that indicates unsuccessful network connection. There are many reasons for this error to occur, from a typo in a config (check address/port), to a firewall preventing TCP connection. Consider using network diagnostic tools (f.e. telnet) to confirm you can reac

[grpc-io] GRPC-Java v1.37.0 Released

2021-04-08 Thread 'Sergii Tkachenko' via grpc.io
gRPC Java 1.37.0 is released and is available on Maven Central. https://github.com/grpc/grpc-java/releases/tag/v1.37.0 Behavior Changes - alts: make both GoogleDefaultChannelCredentials and ComputeEngineChannelCredentials choose ALTS for backends given by xDS TD. Changes for ComputeEngi

[grpc-io] GRPC-Java v1.33.1 Released

2020-11-02 Thread 'Sergii Tkachenko' via grpc.io
*Bug Fixes* - Fix builders ABI backward compatibility broken in v1.33.0, see #7552 - netty: The class io.grpc.netty.NettyServerBuilder reverted to extend internal class io.grpc.internal.AbstractServerImplBuilder - netty: