nick-boss-tech opened a new pull request, #5002: URL: https://github.com/apache/solr/pull/5002
🤖 *AI text below* 🤖 *(posted on behalf of Nick Shanin)* https://issues.apache.org/jira/browse/SOLR-11431 A core that fails to initialize now reports 503 (Service Unavailable) instead of 500: `SolrCoreInitializationException` uses `ErrorCode.SERVICE_UNAVAILABLE`. During leader election, `PeerSync` version requests against such a replica must not fail the election; the tolerated 503/404 handling is extracted into `isToleratedLeaderElectionException`, so a failed core simply cannot participate in peer sync. Also corrects a stale `CoreContainer` comment (500 → 503) and updates `TestCoreContainer` assertions to expect 503. New `PeerSyncLeaderElectionTest` covers the failed-core leader election path. Tests: `PeerSyncLeaderElectionTest`, `TestCoreContainer`, `TestLazyCores` — 32 tests, 0 failures (3 skipped), green with Error Prone. ### AI assistance AI agents assisted with research, implementation, review, and drafting. Nick Shanin directed the work and takes responsibility for this contribution. -- 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]
