serhiy-bzhezytskyy opened a new pull request, #202:
URL: https://github.com/apache/solr-orbit/pull/202
A workload written by `create-workload` ended in "SUCCESS" and stopped at
its first step when run: it declared `indices` with a `target-index`, which the
loader does not read, scheduled `create-index`, `cluster-health`,
`force-merge`, a `bulk` operation and an `index-stats` wait, none of which has
a runner, wrote its `match-all` search in OpenSearch's DSL, and carried no
config set to create a collection from.
It now downloads the config set of each collection (`GET
/api/configsets/<name>/files`) into `configsets/<collection>/`, declares its
collections with their config set path and its corpora with a
`target-collection`, and schedules `delete-collection`, `create-collection`
from that config set, a `CLUSTERSTATUS` read, `bulk-index`, `commit`,
`optimize`, `wait-for-merges` and a `match-all` search in Solr's JSON request.
A collection that was asked for and not extracted, a config set that is empty
or cannot be written, and a custom query whose body is not JSON no longer pass
silently.
`generate-data --solr-schema` reads a Solr schema, the Schema API response
or the file `create-workload` writes; on `main` that file gave `{"schema":
"unknown_type"}` and "SUCCESS". It generates a value per field by the class of
its type, a unique value for the `uniqueKey`, dates as full instants, points as
`lat,lon`, and one value where a `copyField` needs one; `skip_fields` leaves
out fields an update processor fills. A required field, or the `uniqueKey`, of
a type it does not know stops the command; a numeric `uniqueKey` is random and
repeats after about 2^(bits/2) documents, which the docs say.
| nyc_taxis, `create-workload` then `run`, Solr 10.1.0 | result |
|---|---|
| this change | SUCCESS, 1000 of 1000 documents indexed, every task with
error rate 0 |
| `main` | the run stops at its first step |
Test with:
```
solr-orbit create-workload --workload w --indices nyc_taxis --target-hosts
localhost:8983 --number-of-docs nyc_taxis:1000 --output-path /tmp/wl
solr-orbit run --pipeline=benchmark-only --target-hosts=localhost:8983
--workload-path=/tmp/wl/w
curl -s localhost:8983/solr/nyc_taxis/schema > schema.json
solr-orbit generate-data --solr-schema schema.json --total-size 1
--index-name c --test-document
pytest tests -q # 1303 passed, 5 skipped
```
Not covered: a collection with fewer than 1000 documents cannot run with
`--test-mode`, which expects the 1000 of the `-1k` file; the docs say so.
--
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]