Yeah, app_requested looks part of normal server.shutdown() flow. But it
probably isn't the true cause of the error. What is probably happening is
the RPC isn't completing in time and then you call server.shutdownNow(),
which closes the connection. That connection closure is what actually
causes the error.

When the connection closes there's not too much error information
available. The client ends up saving the earlier GOAWAY (from shutdown())
in hopes it is related to the connection closure and sheds light on
debugging.

On Wed, Feb 7, 2024 at 2:50 PM James M <depth9...@gmail.com> wrote:

> Hi Eric,
>
> I am not positive that I need it.  I am trying to run some experiments to
> debug a race condition I am encountering in one of my unit tests.  The unit
> test is around asserting graceful shutdown of grpc servers (that requests
> were accepted and complete within the awaitTerminate timeout).
>
> The exact error I receive is "  io.grpc.StatusRuntimeException:
> UNAVAILABLE: Connection closed after GOAWAY. HTTP/2 error code: NO_ERROR,
> debug data: app_requested".
>
> As far as I can tell, this error results from the close method of the
> Netty Server Handler being called without a Graceful Shutdown set.  There
> is nothing specifically wrong with that, except that I cant figure out why.
>
> Any tips are appreciated.
>
> Thanks,
> James M.
>
> On Tuesday, February 6, 2024 at 4:17:35 PM UTC-8 Eric Anderson wrote:
>
>> Java does not have a setting for adjusting the maximum ping strikes. Why
>> do you need to adjust it? Typically adjusting it higher doesn't change
>> whether the connection would get killed. It just delays it a little bit.
>>
>> On Wed, Jan 31, 2024 at 2:52 PM James M <dept...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> In Java, is there a way to override the grpc default value for
>>> GRPC_ARG_HTTP2_MAX_PING_STRIKES?
>>>
>>> I do not see a method exposed to do this in the ServerBuilder?
>>>
>>> Thank you,
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/grpc-io/2a422e07-f676-45e3-9d41-5a56121876c9n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/grpc-io/2a422e07-f676-45e3-9d41-5a56121876c9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/acfc61d7-1bec-45ca-8936-3f21159c5306n%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/acfc61d7-1bec-45ca-8936-3f21159c5306n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oP7e4%3DJ1qLUG58wprBzpUntxtpNK6ywnv40Uy0EimOstg%40mail.gmail.com.

Reply via email to