From 9cd5b95a00a13964de46d2e566e4fdab4a4cd75a Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 1 Dec 2026 14:18:54 +0800 Subject: [PATCH] test(rust): stabilize presigned reads after an idle connection reset (#5304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The idle connection reset test disables connection retries. On macOS 26, the next range GET can write to the stale socket before the HTTP pool observes the reset and return `BrokenPipe`. This fails on `main` and on PRs that inherit the test. [Main](https://github.com/lancedb/lancedb/actions/runs/46342154434/job/141596071384) · [#4892](https://github.com/lancedb/lancedb/actions/runs/46139288217/job/141879753179) · [#5240](https://github.com/lancedb/lancedb/actions/runs/46069428496/job/140757758471) Allow one connection retry in the test so the read can recover through the existing presigned GET path. The server still verifies reuse of the initial socket and a successful read on a fresh socket. The requests must retain the signed URL and range and omit the Enterprise API key. The adjacent disconnect tests cover both enabled and disabled connection retries. --- rust/lancedb/src/remote/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/lancedb/src/remote/client.rs b/rust/lancedb/src/remote/client.rs index d900ecc65..4a204a250 100644 --- a/rust/lancedb/src/remote/client.rs +++ b/rust/lancedb/src/remote/client.rs @@ -1579,7 +1579,9 @@ mod tests { ..Default::default() }, retry_config: RetryConfig { - connect_retries: Some(0), + // The next request can race the pool's observation of the reset. + // Allow one retry so the read can use a fresh connection. + connect_retries: Some(1), read_retries: Some(0), ..Default::default() },