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

Stack SolrRequestInfo

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
      None

      Description

      Sometimes SolrRequestInfo need to be suspended/overridden with a new one that is used temporarily. Examples are in the [subquery] transformer, and in warm of caches, and in QuerySenderListener (another type of warming), maybe others. This can be annoying to do correctly, and in at least one place it isn't done correctly. SolrRequestInfoSuspender shows some complexity. In this issue, David Smiley proposes using a stack internally to SolrRequestInfo that is push'ed and pop'ed. It's not the only way to solve this but it's one way.

      See linked issues for the context and discussion.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                6 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 - 3h 10m
                  3h 10m