Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
9.0
-
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.
- 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.
- Tweak the field parsing logic to be more resilient to the specific "redundant query params" case I encountered specifically here.
Attachments
Issue Links
- links to