Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16129

Solr specific InputStreamResponseListener to prevent client threads from hanging forever

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      This issue tracks the implementation of workaround I suggested for SOLR-16099 - it does not fix the underlying bug (which as of this writting doesn't have an identified root cause) but it does ensure that client threads which encounter the bug won't hang forever...

      One thing we may want to consider (in Solr) is replacing our usage of InputStreamResponseListener with a variant implementation that uses a "timeout" instead of an unlimited wait() (along the lines of a spin-off jetty enhancement issue one of the jetty devs filed). We could probably (with some effort) tweak the impacted Solr APIs to propogate the (remaining) timeAllowed (if that option was specified) down to this class – and/or have an "extreme" default (ie: 30min) just to prevent threads from sticking around forever.

      Attachments

        1. SOLR-16129.patch
          18 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: