Skip to content

Scope empty response retries to statement requests - #637

Merged
wendigo merged 1 commit into
trinodb:masterfrom
lozbrown:fix/statement-empty-response-retry
Sep 23, 2026
Merged

wendigo merged 1 commit into
trinodb:masterfrom
lozbrown:fix/statement-empty-response-retry

Conversation

@lozbrown

@lozbrown lozbrown commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #636.

The retry introduced for empty HTTP 200 statement responses was applied to shared transport wrappers. This scopes that condition to statement GET and POST requests, leaving generic transport operations unchanged.

The statement predicate now checks response.content, avoiding text decoding and charset detection for binary responses.

Tests:

  • .venv/bin/python -m pytest tests/unit/test_client.py -q (77 passed, 2 skipped)

@cla-bot cla-bot Bot added the cla-signed label Sep 2, 2026
@lozbrown

lozbrown commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@hashhar any chance you can have a look?

@wendigo
wendigo merged commit 2301d8e into trinodb:master Sep 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

339 regression: HTTP 200 empty-body retry causes severe spooled-result regression and retries valid empty responses

2 participants