Repository navigation
Read the chained response's body in the cluster test worker - #8569
Conversation
There was a problem hiding this comment.
Superseded by the review of
c1388fe6.
This review, of e6bfec6a
✅ Approved — The change is three lines in a test worker and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code reviewer: ✅ LGTM
The three-line change to the test worker's /chain handler is correct and has no side effects.
Reviewed commit: e6bfec6a
ry
left a comment
There was a problem hiding this comment.
[AI] LGTM. The behaviour this works around affects users too: a DO response whose body is never read keeps the DO busy, so a drain waits the full 5 s for code that checks .ok and drops the body. Maybe worth a line in the drain docs.
The /chain handler of the cluster test's Counter called the next DO and, when that answered 200, never read the response's body. Until the body is read, the called DO counts as busy. In "a stopping node's DOs finish calls to themselves and across nodes" every handoff on the stopping node so waited out the 5 s allowed for requests in flight and then cancelled them, although the calls were done within 2 s. * /chain now reads the body of each response it gets back. * The stopping node's drain takes about 1.3 s instead of 5.0-5.5 s, and the test about 2.9 s instead of 6.3 s. * The stopTimeoutMs docs say that an unread DO response body keeps the object busy and its handoff waiting, and advise reading or cancelling a body that isn't used.
e6bfec6 to
c1388fe
Compare
|
Added that to the |
There was a problem hiding this comment.
✅ Approved — A three-line test worker fix plus a doc note on stopTimeoutMs. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code reviewer: ✅ LGTM
The /chain handler reads the chained response body once with no other effect. The stopTimeoutMs doc paragraph is consistent with the existing text about requests in flight being cancelled at half the stop timeout.
Reviewed commit: c1388fe6
In "a stopping node's DOs finish calls to themselves and across nodes",
every handoff on the stopping node waited out the 5 s allowed for
requests in flight and then cancelled them, although the calls were done
within 2 s. The test worker's /chain handler never read the body of a
chained DO's 200 response, and until it is read the called DO counts as
busy. On a loaded macOS runner that 5 s wait pushed the drain past the
harness's stop timeout, so the node was SIGKILLed: 2 of the 14 recent
slow-drain CI failures were this test.
the test about 2.9 s instead of 6.3 s.
cluster-test passed 200 of 200 shard-runs on bazelflare.