Skip to content

HoodieListPairData#join can drop pairs when its eager data is joined in parallel #21046

Done

Description

@yihua

HoodieListPairData#join adds the joined pairs to a shared ArrayList from forEach on the stream of its data, and that stream is parallel for both eager and lazy list data. Concurrent adds can drop pairs or throw ArrayIndexOutOfBoundsException, so a join on the Java engine or another list-based engine context can silently return fewer pairs than it should. A write that relies on such a join, for example to find the base file positions of located records, can then lose a positional delete and leave a deleted record visible.

The join should collect its pairs from the stream instead of adding them to a shared list. Related to #16926, which is about honoring the lazy setting in the same join.

Fixed by #21047.

Activity

  1. added
    priority:high
    type:bug
    area:core
    area:concurrency
    on Dec 2, 2026
  2. yihua commented on Dec 3, 2026

    @yihua
    ContributorAuthor

    Fixed by #21020 (3d0f8be), which carried the change of #21047.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:concurrencyarea:corepriority:hightype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions