epugh opened a new pull request, #200:
URL: https://github.com/apache/solr-orbit/pull/200
## Problem
The docs say corpus files must be **gzip**-compressed, and every example
uses `.gz`. That's both wrong and different from what users actually see:
- The official workloads (`nyc_taxis`, `geonames`) ship `.bz2`. They switch
to `.zst` when you pass `use_zstd`.
- `solr-orbit create-workload` writes `.bz2`
(`workload_generator/extractors.py`).
- `.gz` works, but it isn't required, and no bundled corpus uses it.
## Changes
- **Examples use `.bz2`** in `anatomy-of-a-workload.md`, `corpora.md`,
`creating-custom-workloads.md`, `finetune-workloads.md` and
`running-workloads.md`. That covers file trees, `source-file` values,
`files.txt` and the test-mode `-1k` name.
- **Custom workload commands use bzip2:** `bzip2 my_data.json`, and `bzcat …
| head -n 1000 | bzip2` for the test-mode file.
- **No more "must be gzip" wording** in `concepts.md`,
`anatomy-of-a-workload.md`, `corpora.md` and `creating-custom-workloads.md`.
- **`corpora.md` gets a table of supported formats**, taken from
`utils/io.decompress`:
- `.bz2`: uses `pbzip2` if installed, otherwise Python's `bz2`.
- `.zst`: uses the bundled `zstandard` library.
- `.gz`: uses `pigz` if installed, otherwise Python's `gzip`.
- `.zip`, `.tar`, `.tar.gz`, `.tgz`, `.tar.bz2`: archives.
The page also explains where the decompressed file is written and how to
use `use_zstd`.
- **`uncompressed-bytes`** now says Solr Orbit checks the extracted file
against it and fails the run on a mismatch (`workload/loader.py`,
`Decompressor`).
## Verification
- Confirmed `--workload-params="use_zstd:true"` arrives as a real boolean
(`opts.to_dict`), so the workloads' `{% if use_zstd %}` check works as
documented.
- I couldn't build the site locally because of a Ruby version mismatch, so
rendering is left to the docs CI. The changes are plain Markdown tables and
links that match existing ones.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_018RwsEjxzCyQRNsLe9PnjZK
--
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]