Measured change: 40a1bd3b5d8391400cddc033de282bd6f6b221e6
The Jenkins failure was ChaosMonkeyNothingIsSafeTest.expectedAllReplicaOutageRejectsAndRecovers observing an HTTP 500 while every replica was intentionally stopped. Two server paths produced the same externally incorrect classification:
HttpShardHandler.take()receivedInterruptedExceptionfrom the shutdown interrupter after its request core'sCoreContainerhad shut down.- A distributed coordinator received
ConnectException: Connection refusedfrom a shard that had just stopped, andSearchHandler.shardFailure()used its default 500 status.
The change maps only those two shutdown-specific paths to 503. An unrelated thread interrupt and a non-connect I/O failure retain 500.