Repository navigation
feat(c-abi): configurable HTTP retry / backoff policy #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b5f6dda
feat(c-abi): configurable HTTP retry / backoff policy
mani-mathur-arch ffa73c0
feat(config): tune cloudfetch_max_chunks_in_memory via session_conf
mani-mathur-arch f299577
test(c-abi): cover retry→HttpConfig merge; clamp cloudfetch chunk knob
mani-mathur-arch c887904
fix(c-abi): address review — doc client knob, warn degenerate budget,…
mani-mathur-arch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CloudFetch client knob is undiscoverable at the API boundary
The retry knob ships a typed header symbol + a
NEXT_CHANGELOG.mdentry. Thecloudfetch_max_chunks_in_memoryclient knob ships neither — it lives only in Rust source comments (src/session.rs). For a C ABI whose header is the contract, an external host (the ODBC/Go consumers the changelog courts with "Benefits ODBC too") has no way to learn the key exists or what values it accepts. The two error contracts also diverge: retry rejects bad input withInvalidArgument; cloudfetch silently warns-and-ignores.Live verification: built at this SHA and tested against a real warehouse — the knob mechanism works end-to-end (
range(100000)streamed back withmax_chunks=4; an invalid value was ignored without failing connect). So this is purely a documentation/discoverability gap, not a functional bug — but a shipped-but-undocumented tunable is effectively dead to the very consumers it targets.Suggested fix
Add a
NEXT_CHANGELOG.mdentry and a header comment nearset_session_confenumerating recognized client-onlysession_confkeys and their accepted values. Longer term, document a single rule for "typed C-ABI symbol vs clientsession_confkey" so the choice is principled rather than decided per-PR.Reviewers: architecture. Confidence: 82.
/full-review· feedback:#code-review-squad-feedbackThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in c887904.
NEXT_CHANGELOG.mdentry for thecloudfetch_max_chunks_in_memoryclient-only key (accepted values, 256 ceiling / clamp, warn-and-ignore on bad input, never reaches the wire).set_session_confdocumenting the client-only-vs-server-SET distinction and enumerating the recognized client key + its accepted values, so a C host reading the contract can discover it.On the divergent error contracts (retry
InvalidArgumentvs cloudfetch warn-and-ignore): kept deliberately. A retry range is structurally invalid (a degenerate range must not reach the client), whereas the chunk knob is a best-effort perf tuning where a typo should not turn into a connect failure — so it clamps/ignores with a warning instead. Both behaviors are now documented at the boundary.