SOLR-7596: Make the embedded ZooKeeper port configurable #5347
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.60) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 212 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.321
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #5347"
general
weight: 0.35
janhoy
🤖 AI-assisted, reviewed by Jan
The embedded ZooKeeper client port is no longer always
solrPort + 1000: the newsolr.zookeeper.embedded.portsetting (env varSOLR_ZOOKEEPER_EMBEDDED_PORT) assigns it explicitly, which lets a test harness pin every port a node uses instead of deriving it.clientPortinzoo.cfg, elsesolr.zookeeper.embedded.port, elsesolrPort + 1000RunExampleTooland both scripts, leaving room for the+1000ZooKeeper offset and the example node offsetsRunExampleToolpasses the setting to the node that starts embedded ZooKeeper and uses the same value for the-zstring it gives the other nodesSolrZkServerTest(precedence, default, invalid values),TestSolrCLIRunExampleandSolrCLIRunExamplePicocliTest,checkwith Error Prone. Windows (cmd.exe, VM, distribution built from6e86bf4538f): withSOLR_ZOOKEEPER_EMBEDDED_PORT=12345,start -c -p 8983reports"ZooKeeper":"127.0.0.1:12345", netstat shows 12345 listening and nothing on 9983,zk ls / -z localhost:12345works while-z localhost:9983times out;start -p 64001is refused with the 64000 message andstart -p 64000 -cstarts with ZooKeeper on 65000;start -e cloud --no-promptwith the setting at 12346 brings up both example nodes with ZooKeeper on 12346 and both inlive_nodes, which on Windows works only because the setting is forwarded as-D(the example stripsSOLR_*from the child environment); the new-zhelp text shows on both the picocli and the commons-cli path.