Repository navigation
branch-4.2: [opt](iceberg) Decouple bounded manifest loading from parsed caching (70410) - #70860
Conversation
|
run buildall |
|
/review |
f10d201 to
bcd5570
Compare
|
run buildall |
|
/review |
There was a problem hiding this comment.
Found one P2 issue: cancelling an uncached manifest load during Avro reader initialization can leave its opened input stream unclosed. The inline finding describes the ownership gap and fix direction. No P0/P1 finding was identified, and there are no existing blocking comment IDs.
The review converged after 2 rounds: all three reviewers returned NO_NEW_VALUABLE_FINDINGS in round 2, all 10 changed files were inspected, and every candidate and initial risk has an evidence-based disposition. The historical partition-type concern was dismissed because no examined supported producer demonstrated the suspected mismatch. No additional user focus was supplied.
The reviewed flow is:
native scan context -> delete-manifest prefetch/index
-> bounded data-manifest prefetch -> file tasks -> splits
Critical checkpoint conclusions:
- Goal: bounded manifest loading is independent of parsed caching; the uncached batch path uses the existing prefetcher. Basic path and delete/statistics tests support the intent by inspection; the cancellation leak remains.
- Scope: changes stay within FE Iceberg planning, package bridges, metrics access, style suppression and unit tests.
- Concurrency: split producers and metadata workers share existing task/generation ownership. Filters and adapters are worker-local; projections are immutable. No new lock-order problem was found.
- Lifecycle: generation leases, queued-task cancellation and established reader cleanup were traced. The inline P2 covers cancellation before SDK reader ownership. Borrowed catalog IO remains shared; no static-initialization change exists.
- Configuration: no configuration item was added. Existing metadata thread configuration controls the prefetch window.
- Compatibility: no wire or storage-format change; native schema/spec/sequence handling and standard numeric promotion were checked against pinned Iceberg 1.11.0 sources.
- Thrift/protobuf: no definitions changed, so cross-release field-ID checks do not apply.
- Parallel paths: cached/uncached, batch/nonbatch, COUNT, explicit split sizes, custom/metadata/incremental classes, single/large/unknown-count manifests and empty snapshots were checked.
- Conditional checks: class and manifest-count guards preserve native fallback; comments explain bounds, deleted-entry accounting and request-local cancellation.
- Test coverage: new JUnit cases inspect bounds, fallback, delete association, statistics isolation and cancellation before IO. They omit cancellation after stream open. The named rewritten-manifest test calls rewriteIf without clusterBy, so it never rewrites manifests and does not validate actual rewritten-header recovery or equality-partition matching. No end-to-end SQL regression was added.
- Expected results: no golden output files changed. Basic assertions match their scenarios; the rewritten-manifest test overstates its exercised scenario.
- Observability: the native planning wrapper preserves scan events, timing and reporting; manifest/file/deletion metrics are updated. No new heavy INFO logging was introduced.
- Transactions/persistence: read planning only; no EditLog or transaction changes. Snapshot/source-generation pinning and delete sequence metadata remain the visibility fences.
- Writes/crashes: no data writes or new atomicity protocol; shared-resource teardown was inspected, with the stream leak reported inline.
- FE/BE propagation: no new transmitted variable; required existing file metadata, offsets, deletes and lineage fields remain available.
- Performance: data-manifest buffering is bounded by the configured window and entry-count guard. Unrequested statistics are discarded after safe delete association; request-local results skip cache-retention accounting.
- Other invariants: pruning, null/missing statistics, historical equality IDs, error propagation, cache isolation and duplicate suppression were inspected. No MoW or BE memory-accounting code changed.
Validation was static inspection only: no builds or tests ran, no repository source was edited, and no submodule was initialized. Test gaps above remain; alternate external rewrite producers were not exhaustively audited. These are validation limits, with no unresolved production candidate or unreviewed assigned PR scope.
Review converged after 2 round(s).
bcd5570 to
7a95a7f
Compare
|
run buildall |
|
/review |
There was a problem hiding this comment.
No new actionable finding was confirmed on head 7a95a7f. The existing P2 stream-initialization cancellation leak (thread 4661787296) is fixed: request-local IO tracks opened streams and closes leftovers on unwinding without closing shared catalog IO. The new close-count test targets that interleaving. No existing P0/P1 finding remains to list. No additional user focus was supplied.
Reviewed flow:
selected snapshot + schema
-> bounded delete-manifest reads -> delete index
-> bounded data-manifest reads -> pruning + delete association
-> requested statistics projection -> file tasks -> splits
Critical checkpoint conclusions:
- Goal: bounded manifest loading now works independently of parsed caching. Inspected unit cases cover uncached executor use, bounds, fallback, delete association, statistics isolation, rewritten headers and cancellation.
- Scope: changes are focused on FE Iceberg planning/cache integration, package bridges, metrics access, style suppression and unit tests.
- Concurrency: filters and adapters are worker-local; existing task state, completion queues and generation leases protect producer/worker ownership. IO stays outside scheduling locks; no new lock-order defect was found.
- Lifecycle: reader, stream, task and generation cleanup were traced through success, failure and cancellation. The old stream leak is fixed; shared FileIO is preserved. No new static-initialization dependency.
- Configuration: none added; existing metadata-thread configuration controls the prefetch window.
- Compatibility: APIs and projection/copy behavior were checked against pinned Iceberg 1.11.0. No wire/storage-format change; existing spec, sequence and lineage metadata remain available.
- Thrift/protobuf: untouched; cross-release field-ID checks do not apply.
- Parallel paths: cached/uncached, batch/nonbatch, COUNT, explicit split sizes, native/custom/system/incremental classes, empty snapshots and single/large/unknown-count manifests were checked. Unsupported uncached cases retain SDK planning.
- Conditions: entry-count bounds include deleted entries and use a widened sum; inclusive manifest/file pruning matches native SDK behavior.
- Tests: all new assertions and relevant existing prefetch/schema tests were inspected. No end-to-end SQL test was added; reporter fields, explicit statistics selections and predicate combinations lack exhaustive assertions.
- Expected results: no golden output files changed. The rewritten-manifest test now forces rewriting and verifies snapshot IDs; its path-targeted delete assertion does not establish every historical partition-key/equality-delete combination.
- Observability: the native scan event, timer and close-time report are retained; manifest/file/delete counters are updated. No new heavy per-file INFO logging.
- Transactions/persistence: read planning only, with no EditLog/commit mutation. Selected snapshots and retained source generations remain the visibility fences.
- Writes/crashes: no data writes or new atomicity protocol; cancellation preserves generation ownership until workers finish.
- FE/BE propagation: no new transmitted variable; existing task metadata and deletes remain the dispatch inputs.
- Performance: data buffering is limited by the configured window and manifest entry-count guard. Uncached values skip deep retained-size accounting, predicates run before retained copies, and internal equality statistics are removed after delete association. Delete-index retention parallels the SDK.
- Other invariants: borrowed file objects are copied before reuse, cache payloads remain complete, missing statistics conservatively retain files, and errors propagate after delivery rather than restarting the scan. No BE MemTracker, MoW or internal-table version path changed.
Validation was static inspection only: no builds or tests ran, no repository source was edited, and no submodule was initialized. Historical promotion/drop/rewrite concerns were traced against the supported SDK producer/reader paths without confirming an introduced defect. Alternate external producers and runtime interleavings were not exhaustively validated. The test gaps above are validation limits rather than unresolved production findings.
The review converged after 1 round: all three reviewers returned NO_NEW_VALUABLE_FINDINGS, all 10 changed files were covered, and every candidate and risk focus has an evidence-based disposition. No unresolved production candidate or uncovered assigned PR scope remains.
Review converged after 1 round(s).
…sed caching (apache#70410) cherry pick from apache#70410
|
run buildall |
7a95a7f to
d51e9cb
Compare
|
/review |
There was a problem hiding this comment.
No new actionable finding was confirmed on head d51e9cb. The existing P2 cancellation leak (thread 4661787296) is fixed: each manifest load tracks streams opened before SDK reader ownership and closes them on unwinding, without closing shared catalog FileIO. The new close-count test targets that interleaving. There are no existing P0/P1 blockers to list. No additional user focus was supplied.
The review converged after 1 round. All three reviewers returned NO_NEW_VALUABLE_FINDINGS; the main reviewer independently checked their evidence. All 10 changed files, every candidate and all initial risks have explicit dispositions, with no unresolved production candidate or unreviewed assigned PR scope.
Reviewed flow:
selected snapshot/schema/generation
-> bounded delete-manifest reads -> delete index
-> bounded data-manifest reads -> pruning and delete association
-> requested-statistics projection -> file tasks -> splits
Critical checkpoint conclusions:
- Goal and proof: bounded manifest loading is independent of parsed caching for eligible uncached batch scans. Inspected unit cases cover executor use, bounds, fallback, delete association, statistics isolation, rewritten headers and cancellation.
- Scope: changes stay within FE Iceberg planning/cache integration, package bridges, metrics access, a targeted style suppression and unit tests.
- Concurrency: filters, evaluators and adapters are worker-local; immutable results cross the completion queue. Split producers and manifest workers use separate executor pools. Existing task synchronization and generation leases protect ownership; no new lock-order defect or heavy IO under added locks was found.
- Lifecycle: reader/stream/task/generation cleanup was traced through success, early close, failure and cancellation. The previous stream leak is fixed. Shared catalog IO is preserved; no cross-translation-unit static-initialization change applies.
- Configuration: none added. Existing metadata-thread configuration controls prefetch width; no new dynamic propagation requirement.
- Compatibility: APIs, projection/copy and reader behavior were checked against configured Iceberg 1.11.0. No wire/storage-format change. Historical physical types are recovered before query-local adaptation; sequence and lineage metadata remain available.
- Thrift/protobuf: untouched; cross-release field-ID comparison is not applicable.
- Parallel paths: cached/uncached, batch/nonbatch, COUNT, explicit split sizes, native/custom/system/incremental classes, empty snapshots and single/large/unknown-count manifests were checked. Unsupported uncached cases retain native SDK planning.
- Conditions: eligibility comments explain whole-manifest buffering. Entry-count bounds include deleted entries, unknown counts fall back, and widened arithmetic prevents overflow. Manifest pruning uses inclusive partition projection.
- Test coverage: all seven added JUnit methods and relevant adjacent code/tests were inspected. Negative size/null/overflow and cancellation-before/after-stream-open cases are present. No full SQL end-to-end test was added; nonempty predicate combinations, requested-stat variants and exact reporter values lack direct assertions in the new tests.
- Expected results: no golden-output files changed. Assertions match the constructed cases. The rewritten-manifest test forces rewriting and verifies snapshot IDs; its path-targeted position delete does not prove equality-delete partition discrimination after a source drop.
- Observability: native scan event, planning timer and close-time reporting are reused; total/scanned/skipped manifest/file counters, indexed-delete and file-task counters are wired. No new heavy INFO logging was introduced.
- Transactions/persistence: read planning only, with no EditLog or transaction mutation. Selected snapshots, schemas and retained source generations remain the visibility fences.
- Data writes/atomicity/crashes: no writes or new commit protocol. Generation ownership persists until workers exit. Errors after partial streaming propagate rather than restarting an SDK scan and duplicating tasks.
- FE/BE propagation: no new transmitted variable. Existing file/deletion metadata, offsets, sort-order ID, inherited row IDs and sequence numbers survive the reader/copy chain.
- Performance: manifest buffering is bounded by the configured window and entry-count guard. Predicates run before retained copies, equality-key statistics survive until delete association, then unrequested maps are removed. Request-local results skip deep cache accounting; delete-index retention parallels native planning.
- Other invariants: borrowed entries are copied before reuse, shared cache payloads stay complete, missing statistics conservatively retain files, and error/duplicate suppression paths were inspected. No BE MemTracker, MoW or internal-table visible-version code changed.
Validation was static inspection only: no builds, tests or benchmarks ran, no repository source was edited, and no submodule was initialized. Promotion/drop/expiry/rewrite paths were traced against official Iceberg sources without confirming an introduced defect. UNKNOWN read projection preserves surviving physical values; potential value loss by an SDK rewrite is inherited behavior, not a new PR regression. Alternate external producers and runtime interleavings were not exhaustively validated. The test gaps above are validation limits rather than unresolved production findings.
Review converged after 1 round(s).
|
run buildall |
|
run buildall |
Local pipeline review — ✅ PASSschema: doris-repo-review/v1
status: PASS
pr: apache/doris#70860
commit: d51e9cb93a5d3a7d93e40848dd9846994149a563
base: 368131f862d18579026e52014fdf4e1e6be490cd
reviewed_at: 2026-11-27T15:09+08:00
reviewer: 924060929
model: gpt-6.2-astra
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 2
converged: trueNotes for maintainers
Reviewed locally with the |
|
run buildall |
cherry pick from #70410