mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 07:45:17 +00:00
test(rust): stabilize presigned reads after an idle connection reset (#5304)
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.
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user