Skip to content

[FlightRPC][Java] Flight server can hang JVM on shutdown #23196

Closed

Description

@asfimport

I noticed this while working on Flight integration tests. FlightService keeps an executor, which can hang the JVM on shutdown if the executor itself is not shut down.

It's used by Handshake and DoPut.

I think this surfaced because I wrote an AuthHandler that threw an exception.

Reporter: David Li / @lidavidm
Assignee: David Li / @lidavidm

PRs and other links:

Note: This issue was originally created as ARROW-6867. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Oct 12, 2019

    @asfimport
    Author

    David Li / @lidavidm:
    Aha, the real reason is

    1. By default, we share an executor between gRPC and Flight.
    2. gRPC doesn't take ownership of the executor, so we need to manually shut it down on exit.

    The safest thing would be to clean up the executor, and document Flight as owning it.

  2. asfimport commented on Nov 21, 2019

    @asfimport
    Author

    Micah Kornfield / @emkornfield:
    Issue resolved by pull request 5634
    #5634

  3. added this to the 0.16.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions