ServerSwitchCoordinator takes an epochClock (default System.currentTimeMillis) for onSelectRefused, the manual pick that fails verification, SlotHostImpl.recordUnreachable and the startup fallback. Real-pair tests: the stored startup-fallback record is epoch-stamped, fresh just inside the 10 min TTL and expired just after; a refused manual pick of the real dead server shows a failure time of that pick. The slot path has no e2e (needs a slot plan), only the shared one-line change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 line
286 B
Text
1 line
286 B
Text
Неудачный ручной выбор сервера и уход слота с сервера теперь записываются с верным временем: «Нет ответа» держится 10 минут и учитывается при выборе замены.
|