Skip to content

[MINOR] Preserve original cause in ReadException on close failure#827

Merged
the-other-tim-brown merged 1 commit into
apache:mainfrom
alealandreev:fix/preserve-cause-in-readexception-on-close
Jun 6, 2026
Merged

[MINOR] Preserve original cause in ReadException on close failure#827
the-other-tim-brown merged 1 commit into
apache:mainfrom
alealandreev:fix/preserve-cause-in-readexception-on-close

Conversation

@alealandreev

Copy link
Copy Markdown
Contributor

What is the purpose of the pull request

HudiDataFileExtractor.close() wrapped any failure from closing the table
metadata or file system view in a new ReadException without passing the
caught exception as the cause. This discarded the original stack trace and
root cause (e.g. I/O or permission errors), making such failures hard to
diagnose.

Brief change log

  • Pass the caught exception to the ReadException(message, Throwable)
    constructor in HudiDataFileExtractor.close() so the original cause is
    preserved in the exception chain.

Verify this pull request

This pull request is a trivial rework / code cleanup without any test coverage.

HudiDataFileExtractor.close() wrapped any failure from closing the
table metadata or file system view in a new ReadException without
passing the caught exception as the cause. This discarded the original
stack trace and root cause (e.g. I/O or permission errors), making such
failures hard to diagnose.

Pass the caught exception to the ReadException(message, Throwable)
constructor so the original cause is preserved in the exception chain.
@the-other-tim-brown the-other-tim-brown merged commit 7c9d840 into apache:main Jun 6, 2026
2 checks passed
@the-other-tim-brown

Copy link
Copy Markdown
Contributor

Thanks for the fix @alealandreev!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants