serhiy-bzhezytskyy opened a new pull request, #43: URL: https://github.com/apache/solr-orbit-workloads/pull/43
nyc_taxis' `append-sorted-no-conflicts-index-only` creates the plain `nyc_taxis` config set, so its collection is not sorted: after a run, `/solr/nyc_taxis/config` has no `SortingMergePolicyFactory` (0 occurrences on `main`, 1 with this change), and geonames has no sorted procedure at all. This needs apache/solr-orbit#193, which lets a procedure name the config set its collection is created from; on a solr-orbit without it the task's config set is ignored, so the collection is created from the plain config set and stays unsorted, and a run on a cluster that already holds that config set fails with "The configuration geonames already exists". solr-orbit's converter writes, for a procedure that asks for a sorted index, a config set whose merge policy is `SortingMergePolicyFactory` for that sort, under a name of its own, because Solr serves a config set that is deleted and uploaded again with other content under the same name from its cache. `nyc_taxis_sorted` (`pickup_datetime desc`) and `geonames_sorted` (`country_code_raw asc,admin1_code_raw asc`) are the existing config sets plus that merge policy. `create_collection.json` and `delete_collection.json` take an optional `configset_name`, the two sorted procedures pass the sorted config set and its name, and geonames' `workload_setup.json` lets a procedure choose the config set. Rendered, the delete and create steps are the ones the converter writes. | after a run on Solr 10.1.0 | `SortingMergePolicyFactory` in the collection's `/config` | |---|---| | nyc_taxis `append-sorted-no-conflicts-index-only`, `main` | 0 | | nyc_taxis `append-sorted-no-conflicts-index-only`, this change | 1, `sort` = `pickup_datetime desc` | | geonames `append-sorted-no-conflicts`, this change | 1, `sort` = `country_code_raw asc,admin1_code_raw asc` | Test with: ``` solr-orbit run --pipeline=benchmark-only --target-hosts=localhost:8983 --workload-path=geonames --test-procedure=append-sorted-no-conflicts --test-mode curl -s localhost:8983/solr/geonames/config | grep -o SortingMergePolicyFactory | head -1 ``` `curl` prints `SortingMergePolicyFactory`; the same for nyc_taxis with `--test-procedure=append-sorted-no-conflicts-index-only`. -- 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]
