epugh opened a new pull request, #198:
URL: https://github.com/apache/solr-orbit/pull/198

   ## Problem
   
   `ProcessLauncher` (`builder/launcher.py`) and `LocalProcessLauncher` 
(`builder/launchers/local_process_launcher.py`) start Solr 9.x with `bin/solr 
start ... --cloud`.
   
   In Solr 9.0 through 9.6, the start-option parser in `bin/solr` only knows 
`-c|-cloud`. Any other option except `-D...` hits the catch-all branch, which 
prints `--cloud is not supported by this script` and exits 1. (In 9.0.0 that's 
lines 1638 and 1776–1785.) `--cloud` is only accepted from 9.7 on.
   
   - `ProcessLauncher` raises `LaunchError("Daemon startup failed with exit 
code [1]")`.
   - `LocalProcessLauncher` runs the command detached and waits for a PID file 
that never appears.
   
   ## Fix
   
   Use `-c`, which every 9.x accepts. `SolrProvisioner`, the main `run` path, 
already does this. Solr 10+ still gets no flag.
   
   | Solr version | `-c` / `-cloud` | `--cloud` |
   |---|---|---|
   | 9.0 – 9.6 | ✅ | ❌ |
   | 9.7 – 9.10 | ✅ | ✅ |
   | 10+ | not needed (cloud is the default) | |
   
   ## Tests
   
   - New unit tests for both launchers check that 9.x uses `-c` and never 
`--cloud`, that an unknown version on the local launcher uses `-c`, and that 
10.x gets no cloud flag.
   - The new 9.x and unknown-version tests fail on `main` and pass with this 
change.
   - `pytest tests`: 1272 passed, 5 skipped. `ruff check` is clean.
   - This was checked against the `bin/solr` source for 9.0.0, 9.6.1, 9.7.0 and 
9.10.0. It was not run against a live Solr 9.0 install.
   
   🤖 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]

Reply via email to