Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rok/arrow-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: apache/arrow-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 3 contributors

Commits on Aug 7, 2026

  1. apacheGH-1239: Fix memory leak when C Data import hits allocator limi…

    …t mid-array (apache#1240)
    
    `ReferenceCountedArrowArray.unsafeAssociateAllocation` calls `retain()`
    before `wrapForeignAllocation`. If `wrapForeignAllocation` throws
    (allocator over its limit), the retain is never balanced, the reference
    count stays elevated, and the C Data release callback never fires —
    leaking the producer's native memory.
    
    **Fix:** call `retain()` after `wrapForeignAllocation` returns. Same
    behavior on the success path; on failure the existing `finally` in
    `ArrayImporter.importArray` drives the count to zero and fires the
    release callback.
    
    **Test:** `ImportOutOfMemoryTest` — exports a batch from a "producer"
    allocator, tries to import it into a too-small consumer, and asserts the
    producer drains to zero after the OOM. Fails on the original code,
    passes with the fix.
    
    Fixes: apache#1239
    
    ---------
    
    Signed-off-by: Sandesh Kumar <kusandes@amazon.com>
    Co-authored-by: Sandesh Kumar <kusandes@amazon.com>
    sandeshkr419 and Sandesh Kumar authored Aug 7, 2026
    Configuration menu
    Copy the full SHA
    85d7ef3 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2026

  1. Configuration menu
    Copy the full SHA
    fa20039 View commit details
    Browse the repository at this point in the history
Loading