Skip to content

Close input readers when ParquetRewriter setup fails #3667

Description

@anxkhn

Describe the bug, including details regarding any error messages, version, and platform.

ParquetRewriter.getFileReaders opens each input reader into a local list. If opening a later input throws IOException, the exception is propagated without closing readers already opened for earlier inputs. Because construction fails, callers cannot close those readers, which leaks their input streams.

Expected behavior: readers opened before the failure are closed before the setup exception is propagated.

Component(s)

Core

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions