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

Refactor: Simplify SolrDispatchFilter close/destroy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      SolrDispatchFilter's close process is more convoluted than it needs to be. There is conditionality via a boolean closeOnDestory that JettySolrRunner uses, yet it seems it doesn't really need this logic. JSR could instead call Jetty FilterHolder stop() method which tracks lifecycle to know if it hasn't been called, and it can skip needless null checks. Also SDF's reference to CoreContainer needn't be null'ed out, which makes some logic simpler above that needn't guard against null. The HttpClient needn't be null'ed either. We don't need a reference to SolrMetricManager; it can be gotten from CoreContainer easily.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m