MohammadYusif opened a new pull request, #37:
URL: https://github.com/apache/solr-orbit/pull/37
## Summary
- `delete-collection` crashes with HTTP 500 ("Aliases don't exist in a
non-cloud context") when targeting standalone Solr, because the Collections API
unconditionally checks ZooKeeper-managed aliases
- `delete_collection()` now detects this specific 500 and transparently
falls back to the V1 Cores API, which works in both standalone and SolrCloud
deployments
## Changes
- `osbenchmark/client.py`: added non-cloud detection in
`delete_collection()` and a new `_delete_core()` helper calling
`/solr/admin/cores?action=UNLOAD` with full cleanup flags
- `tests/unit/solr/test_client.py`: 4 new tests covering the fallback path,
missing-core error propagation, the 400 path, and unrelated 500 errors
Fixes #33
--
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]