SOLR-18661: Windows: write a real PID file instead of the .port file #5348
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 190 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.314
Real PR Conversation Timeline
1 comments
"Review active on #5348"
general
weight: 0.35
janhoy
🤖 AI-assisted, reviewed by Jan
bin\solr.cmd startnow resolves the PID of the process listening on the port (netstat, once the start wait has seen Solr come up) and writes it tosolr-<port>.pid, the same filebin/solrwrites; a foreground start writes no file at all.stop --allwalkssolr-*.pidand stops the PID in the file only if it still owns the port the file is named after,stop -p PORTdeletes both files, andSolrProcessManager.scanSolrPidFiles()has lost its.portbranch, so Windows now uses the same code path as Linux.solr-<port>.portfile is still written on a background start for external scripts that may read it, but nothing in Solr reads it any more. It is deprecated in the 10.2 upgrade notes and insolr.in.cmd, and will no longer be written in 11.0 (SOLR-18662).cmd.exe, VM, distribution built from this branch): a background start writes both files and the.pidcontent equals the PID netstat reports as owner of the port, for a first node and a second one joining its ZooKeeper;solr statuslists them;stop -premoves only that node's two files; with a node's.piddeleted by hand,stop --allreports "No Solr nodes found to stop" while the node is still up, proving the.portfile is no longer read;stop --allwith both files present stops both cleanly. Linux:bin/solris untouched;SolrProcessManagerTestcovers the PID-only scan on both platforms.