serhiy-bzhezytskyy opened a new pull request, #186:
URL: https://github.com/apache/solr-orbit/pull/186
A converted geonames run stops at `large_terms`: "Operation parameter
'collection' is missing". It is the first task to fail once #174 and #185 add
the runners that the default procedure runs before it. The workload's parameter
source builds its request body when it is called, in OpenSearch's query DSL,
and the runner sent that body to Solr unchanged. `convert-workload` now appends
one line to the copied `workload.py` that translates each body before it is
sent.
Translated, the three terms operations still differed from OpenSearch.
[`{!terms}`](https://solr.apache.org/guide/solr/latest/query-guide/other-parsers.html#terms-query-parser)
splits its value on a comma, and 152 of geonames' 45,586 names contain one.
The filter now uses a separator that no value contains: `|`, else `\x1f`, a
control character that cannot occur in text. A `must_not` terms clause of the
root `bool` becomes a negated filter in
[`filter`](https://solr.apache.org/guide/solr/latest/query-guide/json-request-api.html#supported-properties-and-syntax),
because the same terms in `q` exceed the default 1,024 clauses of
[`maxBooleanClauses`](https://solr.apache.org/guide/solr/latest/configuration-guide/caches-warming.html#maxbooleanclauses-element).
`{!terms}` builds no clauses, so `solrconfig.xml` stays as it is.
| operation | OpenSearch | before | after |
|---|---|---|---|
| `large_terms` | 49,722 | 49,771 | 49,722 |
| `large_filtered_terms` | 4,404 | 4,410 | 4,404 |
| `large_prohibited_terms` | 131,073 | SyntaxError | 131,073 |
Counts: Solr 10.1.0 and OpenSearch 3.10.0 over the full geonames corpus
(1,000,436 documents), with the 45,586 names plus one random number, as
geonames' `workload.py` builds them.
Risk: a body with a form that has no translation now raises, where it used
to run as `q=*:*`, so such an operation fails instead of measuring a match-all
query. The line goes into the converted copy of `workload.py`; the source
workload is not touched.
Test with, on a solr-orbit that has the `cluster-health` and
`collection-metrics` runners (the default procedure runs both before the first
search; #174 adds the cluster-health runner and #185 the stats runners):
```
solr-orbit convert-workload --workload-path
<opensearch-benchmark-workloads>/geonames --output-path /tmp/geonames-solr
tail -n 1 /tmp/geonames-solr/workload.py
solr-orbit run --pipeline=benchmark-only --target-hosts=localhost:8983
--workload-path=/tmp/geonames-solr --test-procedure=append-no-conflicts
--test-mode --randomization-enabled
pytest tests/unit/solr/test_workload_adapter.py
tests/unit/solr/test_workload_converter.py
```
`tail` prints `register = _wrap_register(register)`, and pytest `135
passed`. The run stopped at `large_terms` before the change; after it, all 33
`error rate` rows of the summary are 0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]