← Back to Pull requests

SOLR-9714: Let each node have its own stop port #5346

Open
unknown opened this pull request with 206 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 14, 2026 17:59 UTC
Author

🤖 AI-assisted, reviewed by Jan

  • bin/solr/bin\solr.cmd now read the stop port of the node they are stopping from its -DSTOP.PORT command line argument, instead of using one STOP_PORT value for the whole invocation, so stop, stop -p PORT and stop --all work when nodes on a host were started with different stop ports. SolrProcessManager parses it and the existing status command hands it to the scripts through a hidden --stop-port option, which answers from the process arguments alone and returns before any HTTP call, so a node that no longer serves requests can still be stopped. No new command and no reference guide page.

  • A node started without STOP_PORT set still gets, and is stopped on, the derived SOLR_PORT-1000 port; the old STOP_PORT-or-derived value is also the fallback if the lookup finds nothing. STOP_KEY is unchanged.

  • solr.cmd captures the option's output through a temp file rather than a for /f over the java command line, which loses the quoting around -classpath.

  • Verification. Linux: the new BATS case in test_start_solr.bats (two nodes with distinct explicit stop ports, stopped with stop -p and stop --all, no force-kill), plus a temporary CATS suite (#5323 harness) that passes with the fix and fails without it. Windows (cmd.exe, VM): the same CATS suite passes, eachNodeIsStoppedOnItsOwnExplicitStopPort in 39 s (graceful) against 77 s with a force-kill before the capture fix, and derivedStopPortStillStopsGracefully in 37 s; the temp-file capture was also checked directly with a %TEMP% path containing a space.

  • https://issues.apache.org/jira/browse/SOLR-9714
  • Diff: 206 lines (+154 / -52) across 2 files Reviewer: nick-boss-tech Review duration: 24451m
    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 · 206 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.319
    Real PR Conversation Timeline
    1 comments
    "Review active on #5346"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.4% · Safe to merge
    19.4%
    Repository