epugh commented on PR #2391:
URL: https://github.com/apache/solr/pull/2391#issuecomment-7120544649
I went through the ZooKeeper deployment scenarios Solr supports to see which
ones we have test coverage for. Embedded single ZK, embedded quorum, external
single ZK, ZK ACLs/digest credentials, session expiry and state compression are
all covered. These are the gaps I found:
| Scenario | Why it matters | Current coverage |
|---|---|---|
| **External ZK ensemble** (3+ separate servers) | The recommended
production setup | No end-to-end test. I have a Testcontainers-based Docker
test for this locally (3 ZK containers + 2 Solr containers, including stopping
the ZK leader) that I can push. |
| **Chroot** (`-z zk1,zk2,zk3/solr`) | How several Solr clusters share one
ensemble; very common in production | Unit tests for parsing and the `zk` CLI
only, no cluster-level test |
| **SASL / Kerberos to ZK** | Enterprise ZK authentication | Documented in
`zookeeper-access-control.adoc`, no tests |
| **TLS to ZK** (`secureClientPort`, `zookeeper.client.secure`) | Encrypting
Solr↔ZK traffic, increasingly required | Neither documented nor tested. The ZK
client supports it via JVM properties, but nothing confirms Solr works with it |
| **Quorum loss and recovery** | Majority of ZK servers down, then back |
Embedded quorum: `testQuorumLossAndRecovery` exists but is skipped and listed
as "not yet fully reliable". External ensemble: not tested |
| **Replacing ZK servers in a running external ensemble** | Swapping ZK
hosts via dynamic reconfiguration, e.g. a hardware refresh | Not tested |
| **Single DNS name for the ensemble** (e.g. a Kubernetes headless Service)
| Common on Kubernetes | Not tested |
| **ZooKeeper observers** | Non-voting read members, e.g. across datacenters
| Neither documented nor tested |
| **Rolling ZooKeeper upgrade** | Upgrading ZK under a running Solr cluster
| Not tested (`RollingUpgradeTest` upgrades Solr, not ZK) |
One finding that affects the last few rows and this PR's docs: Solr's
ZooKeeper client *does* follow ensemble changes at runtime. Curator's
`EnsembleTracker` is on by default, and Solr builds Curator with `new
FixedEnsembleProvider(zkHost)`, which allows server-list updates. I confirmed
it with `bin/solr`: a node whose `-z` listed only one ensemble member kept
working after that member stopped. So a node's connection string only matters
at startup. The ZK Status warning ("Solr does not currently support dynamic
reconfiguration and will only be able to connect to the zk hosts in your
connection string") and the matching Known Limitations entry in
`zookeeper-ensemble.adoc` overstate the limitation. I have a correction for
both locally as well.
If I were to add coverage next, I'd start with chroot (a small extension of
the external-ensemble test), then TLS, which is the biggest blind spot.
--
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]