Skip to content

Conversation

@hsiang-c
Copy link
Contributor

@hsiang-c hsiang-c commented Oct 1, 2025

Which issue does this PR close?

Closes #. N/A

Rationale for this change

  • When we tested Comet 0.10.0 on production Iceberg workload, we found that there are connection leaks and led to job failures.

What changes are included in this PR?

  • Close the ParquetFileReader instance in the ReadConf used by CometVectorizedParquetReader in Iceberg 1.8.1 and 1.9.1 diffs.

How are these changes tested?

  • After the fix, our Spark jobs completed w/o issues.

@hsiang-c
Copy link
Contributor Author

hsiang-c commented Oct 1, 2025

cc @parthchandra @andygrove Please review it for me, thanks.

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.39%. Comparing base (f09f8af) to head (f5a4aa2).
⚠️ Report is 562 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2510      +/-   ##
============================================
+ Coverage     56.12%   58.39%   +2.26%     
- Complexity      976     1436     +460     
============================================
  Files           119      146      +27     
  Lines         11743    13502    +1759     
  Branches       2251     2350      +99     
============================================
+ Hits           6591     7884    +1293     
- Misses         4012     4389     +377     
- Partials       1140     1229      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @hsiang-c

@parthchandra parthchandra merged commit d867b0e into apache:main Oct 1, 2025
106 of 113 checks passed
@hsiang-c hsiang-c deleted the close_file_reader branch October 16, 2025 21:41
coderfender pushed a commit to coderfender/datafusion-comet that referenced this pull request Dec 13, 2025
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.

4 participants