serhiy-bzhezytskyy opened a new pull request, #197:
URL: https://github.com/apache/solr-orbit/pull/197

   `solr-orbit install --cluster-config=4gheap` followed by `start` ran Solr 
with `-Xmx512m`, its default heap, because `start` never applied the cluster 
config; `run` already did. Following #196, the rest removes what the runtime 
should not carry.
   
   - `install` stores `SOLR_HEAP`, `GC_TUNE` and `SOLR_OPTS` in 
`node-config.json` (older files still load) and `start` applies them, through 
`ClusterConfigInstance.solr_env()`, which `run` and the Docker launcher use too.
   - `ea`, `fp` and `debug-non-safepoints` only wrote a `jvm.options` that Solr 
does not read. They set `solr_opts` now, several add up, and the unread 
`jvm.options` and `log4j2.properties` templates are gone. `1.0/g1gc.ini` and 
`parallelgc.ini` match `main`.
   - `refresh` is `commit`. The alias is removed; the converter turns an 
upstream `refresh` (type, bare step, task `refresh-after-*`) into `commit` and 
`commit-after-*`.
   - The target of an operation is `collection`, in the runtime and in what 
`create-workload` writes; the runtime no longer accepts `index`.
   - `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 UUID 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.
   - The five backup operation types only raised "not yet implemented"; a 
backup repository is declared in `solr.xml`, so a workload uses `raw-request`. 
`parse_error` replaced a Solr error with "error occured, check logs for 
details"; the description is printed as it came. A logger, four unused model 
classes and a helper with no caller are gone.
   - The plugin machinery and `--plugin-params` are removed. OpenSearch 
Benchmark installed OpenSearch plugins with `opensearch-plugin install` on each 
node it provisioned (`--opensearch-plugins`, a `core-plugins.txt`, an `.ini` 
per plugin). Solr has no such installer: its extensions are modules, enabled 
with `SOLR_MODULES` (`--solr-modules` does that), or packages. Nothing selects 
a plugin here, so the list was always empty and `--plugin-params` was only 
stored in the results; results that carry it still load.
   - `it/README.md` says what the tests need, Docker is required only where it 
is used, the default versions are 9.11.0 and 10.1.0 (10.0.0 is no longer 
served), and `make it` asks for Java 21.
   
   Test with:
   ```
   solr-orbit install --distribution-version=10.1.0 --cluster-config=4gheap,ea 
--http-port=18999 --node-name=n --master-nodes=n
   solr-orbit start --installation-id=<id> --test-run-id=t     # the JVM runs 
-Xms4g -Xmx4g -ea; on main -Xmx512m
   solr-orbit generate-data --solr-schema schema.json --total-size 1 
--index-name c --test-document
   pytest tests -q                                             # 1297 passed, 5 
skipped
   ```
   Measured on Solr 10.1.0: `geonames` `append-no-conflicts` in test mode ends 
with 26 tasks and no errors, and 2000 documents generated from its schema were 
indexed without an error.
   
   Behaviour that changes: a `workload.py` that returns `index` must return 
`collection`; steps of the default templates are `commit-after-*`, so 
`--include-tasks` with the old names matches nothing; `ea` and `fp` need a base 
(`4gheap,ea`, as the docs now show); `solr_opts` of `--cluster-config-params` 
replaces the options of the presets; `install` and `start` use the 1g heap of 
the default config.
   
   Not covered: the Docker build type of `install` (its compose file sets 
512m); a converted `big5` does not load, before and after.
   


-- 
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]

Reply via email to