Repository navigation
[Review only, do not merge] Volume core from #465 - #504
aakash-saravanan-db wants to merge 1 commit into
Conversation
Subset of #465 at 0797430 for a complete automated review: src/, include/, tests/, Cargo.toml and Cargo.lock. The full diff exceeds the review bot size cap, which leaves src/volume.rs unreviewed. Not for merge. Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 1 Medium · 3 Low · 1 Nit
Looks solid overall: 1 medium and 3 low concerns. Cancellation, retry, path containment and the C ABI look carefully done. The gaps are server-parity coverage, public-API stability and memory use on redirected PUTs.
This overview is Claude Opus 5.5's initial take; GPT-6.1 Sol added findings it doesn't mention — see the findings below.
Other findings
- ⚪ Nit —
VolumeCompletionis a public enum without#[non_exhaustive], so adding a variant later breaks Rust callers that match it exhaustively. Add#[non_exhaustive]; it works with#[repr(C)]. (Found by Claude Opus 5.5 · confirmed by the judge) - 🟡 Medium — Copying arbitrary XML Message text into the error also copies any reflected presigned URL or credential into debug logs and caller-visible diagnostics; filtering angle brackets does not redact secrets. Omit free-form storage messages or sanitize credentialed URLs and sensitive values before appending them, with a regression test containing a distinctive secret inside Message. (Found by GPT-6.1 Sol · the judge couldn't confirm it)
| #[derive(Debug, Clone, Deserialize)] | ||
| pub struct ResultManifest { | ||
| #[serde(default)] | ||
| pub is_volume_operation: bool, |
There was a problem hiding this comment.
🔵 Low — The Volume wire contract (the manifest key, the instruction columns, the __input_stream__ sentinel and the header encoding) is tested only against hand-built wiremock fixtures, and there is no ignored e2e test. Add #[ignore] e2e tests for PUT, GET and REMOVE against a real warehouse.
🔀 Found by Claude Opus 5.5 · confirmed by the judge
| pub cause: Option<Box<Error>>, | ||
|
|
||
| /// Original local filesystem failure, for host-language OS error mapping. | ||
| pub local_error: Option<Box<LocalFileError>>, |
There was a problem hiding this comment.
🔵 Low — Adding a public field to Error, which is not #[non_exhaustive], breaks downstream struct literals and destructures written without ... Call this out in the release notes, or mark Error #[non_exhaustive].
🔀 Found by Claude Opus 5.5 · confirmed by the judge
| if let Some(bytes) = bytes { | ||
| // reqwest cannot replay a streamed body on a redirect. Send the original URL again | ||
| // with the body in memory so reqwest can follow; this resend has no idle timeout. | ||
| response = client |
There was a problem hiding this comment.
🔵 Low — After a 307/308 on a PUT, the resend bypasses storage_send, so storage_read_timeout no longer bounds upload inactivity or the wait for response headers. The config docs already admit this exception. Apply the progress watchdog to the resend as well.
🔀 Found by GPT-6.1 Sol · confirmed by the judge
| let local_file = local_file.clone(); | ||
| Some(Bytes::from( | ||
| tokio::task::spawn_blocking(move || { | ||
| read_from_start(&file, length).map_err(|e| local_error(e, &local_file)) |
There was a problem hiding this comment.
🟠 High — On a 307/308 redirect, a file PUT reads the whole source file into one in-memory Vec through read_from_start. A large upload can exhaust memory. Replay the file with a streamed body, or at least document and cap the size.
🔀 Found by both reviewers · confirmed by the judge
Review-only copy of the kernel core from #465 at 0797430. Not for merge. This PR will be closed once the automated review is in.
Why
The full diff of #465 is 258 KB, above the review bot's 200,000-byte cap, so the bot has not been shown
src/volume.rs. This subset is 185 KB and fits.What is here
src/,include/,tests/,Cargo.tomlandCargo.lock, identical to #465 at 0797430.What is not here
The ADBC, NAPI and PyO3 bindings, docs, changelogs and CI changes. They stay in #465, where the bot already reviews them.
Findings are tracked and fixed in #465.
This pull request and its description were written by Isaac.