Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13409

[C++][FlightRPC] Expose server shutdown with deadline

    XMLWordPrintableJSON

Details

    Description

      Hello Arrow Team,

      Right now if there is an active client connection to Flight Server , call to

      server->ShutDown
      

      will hang until client disconnects. It seems currently there is no way to force server shutdown. 

      I believe the reason for this is following:
      Inside

      impl_->server_->ShutDown()

      happens

      g_core_codegen_interface->gpr_inf_future(GPR_CLOCK_MONOTONIC)

      thus server has infinite deadline on waiting to finish connections.

      It would be great if you add option for forced shutdown or point me to some existing way to shutdown server independently on client connections.

      Thank you

      Attachments

        Issue Links

          Activity

            People

              rokm Rok Mihevc
              psheftelevich Pavel Sheftelevich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h