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

Make SolrLogPostTool resilient to unexpected requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 9.0
    • 8.6, 9.0
    • scripts and tools
    • None

    Description

      When SolrLogPostTool parses log messages corresponding to incoming requests, it sets various predefined fields based on the parameters on the request. e.g. it sets a rows_i field, a wt_s field, and so on.

      This logic works for most requests, but if the log-parser encounters requests with multiple of these params (e.g. rows), it will blithely add them to the SolrInputDocument, and error out when Solr rejects the eventual update request because it is attempting to put multiple values into a single-valued field.

      We can do two things to fix this.

      1. Make SolrLogPostTool's "posting" code resilient to individual update failures. It doesn't make any sense to crash the entire posting routine just because one batch (or one log message) was malformed.
      2. Tweak the field parsing logic to be more resilient to the specific "redundant query params" case I encountered specifically here.

      Attachments

        Issue Links

          Activity

            People

              gerlowskija Jason Gerlowski
              gerlowskija Jason Gerlowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m