Skip to content

Scope empty response retries to statement requests - #637

Open
lozbrown wants to merge 1 commit into
trinodb:masterfrom
lozbrown:fix/statement-empty-response-retry
Open

Scope empty response retries to statement requests#637
lozbrown wants to merge 1 commit into
trinodb:masterfrom
lozbrown:fix/statement-empty-response-retry

Conversation

@lozbrown

@lozbrown lozbrown commented Sep 2, 2026

Copy link
Copy Markdown

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
Author

@hashhar any chance you can have a look?

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

1 participant