fix(web): 응답 유실 시험의 준비 요청이 장애용 짧은 읽기 제한을 쓰지 않는다
문제: HttpResponseLossFixture.reset()은 시나리오 전에 부수 효과 카운터를 지우는 DELETE다. 이 요청이 응답을 일부러 버리는 호출용 읽기 제한(750ms)을 그대로 썼다. 부하가 높은 runner에서 평범한 reset 응답이 그보다 늦어 JettyCommitThenConnectionResetIT가 시나리오를 시작하기도 전에 SocketTimeoutException으로 실패했다(main run 24, 2026-11-08, 세 번 중 한 번). 고른 방법: 재시도와 부수 효과 조회처럼 넉넉한 HttpFixtureTimeouts.READ_MILLIS를 쓴다. 짧은 제한은 장애를 건 호출에만 남는다. 위험·한계: 시험이 보는 동작은 바뀌지 않는다. 준비 단계가 기다릴 수 있는 시간만 늘었다. 검증: desktop mainCheck(webJettyCompatTest 포함), runner main 수동 실행.
This commit is contained in:
+4
@@ -41,6 +41,10 @@ public final class HttpResponseLossFixture implements ResponseLossFixture {
|
||||
private void reset() {
|
||||
try {
|
||||
HttpURLConnection connection = open(FaultFixtureProtocol.SIDE_EFFECTS_PATH, "DELETE");
|
||||
// The generous timeout, like the retry and the side-effect count. The armed one (750 ms) is
|
||||
// for the call whose reply the container drops; on a loaded runner an ordinary reset reply
|
||||
// took longer than that, and the scenario failed before it began (main run 24, 2026-11-08).
|
||||
connection.setReadTimeout(HttpFixtureTimeouts.READ_MILLIS);
|
||||
connection.getResponseCode();
|
||||
connection.disconnect();
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user