Repository navigation
fix(iceberg): handle fragmented signed HTTP range reads - #27204
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Blocking regression gap: please cover the actual Parquet consumer path, not only the private FileService boundary.
The reported failure in #27196 is parquet.OpenFile -> icebergObjectReaderAt -> ProviderObjectReader -> signedHTTPFileService, but the new regression only calls signedHTTPFileService.Read with arbitrary bytes. It never opens a Parquet footer, never proves the ReaderAt contract, and the PR's Iceberg E2E Local check is skipped. Therefore this test can pass while the user-visible Spark/Iceberg query remains broken (for example, due to an integration mismatch immediately above this helper). The issue itself also explicitly asks for a deterministic one-row Spark/Iceberg regression.
Please add at least a deterministic generated-Parquet test that serves range responses in multiple fragments, reads it through ProviderObjectReader/icebergObjectReaderAt, and successfully executes parquet.OpenFile or readParquetRowGroupFooters; ideally also add/run the one-row Spark-generated Iceberg fixture from the issue. Keep the truncated-range control.
I verified the implementation independently: the same fragmented known-length request fails on base b7125edc with the misleading 512 MiB error and passes on a35e2635; a local generated-Parquet harness through the full ReaderAt chain also fails on base and passes on this head. Package list/build/vet/unit tests, the dependent pkg/iceberg/metadata suite, and focused race tests pass. The code change looks correct; the blocker is committing regression evidence at the externally visible boundary so this fix remains closed.
|
已处理本轮 review 与 CI 失败。
新 head: |
|
@XuPeng-SH 已核对该 blocking feedback 已由当前 head 新增 在该 exact head 的受控 CGo 环境中已重新通过:
请基于当前 head 重新 review。 |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep re-review on exact head 43f9c4c found no blocking issue. The known-length path is bounded before allocation by both the configured 512 MiB ceiling and the remaining IOVector materialization budget, allocates once, and uses io.ReadFull so legal fragmented HTTP bodies no longer trip the conservative growth-peak guard. Unknown-length reads retain ReadAllBounded; ignored-Range 200 responses remain offset/length bounded; truncated known-length responses still fail with UnexpectedEOF and close the body. The committed regression now traverses parquet.OpenFile -> icebergObjectReaderAt -> ProviderObjectReader -> signedHTTPFileService with a range larger than the 4 KiB transport fragment. On the exact worktree, focused fragmented/truncated/budget tests and the full Parquet consumer test passed 10/10, both passed under race 10/10, owning packages build/vet cleanly, and diff --check is clean.
Merge Queue Status
This pull request spent 1 hour 20 minutes 24 seconds in the queue, including 1 hour 1 minute 38 seconds running CI. Required conditions to merge
|
…#27204) fix(iceberg): handle fragmented signed HTTP range reads Approved by: @XuPeng-SH
…#27204) fix(iceberg): handle fragmented signed HTTP range reads Approved by: @XuPeng-SH
…#27204) fix(iceberg): handle fragmented signed HTTP range reads Approved by: @XuPeng-SH
What type of PR is this?
Which issue(s) this PR fixes:
issue #27196
What this PR does / why we need it:
fix(iceberg): handle fragmented signed HTTP range reads