taoran92 opened a new pull request, #10138: URL: https://github.com/apache/paimon/pull/10138
### Purpose Closes #10137. `Sink.load` takes an iterator from `Files.list` without closing the owning stream, leaving directory resources open after configuration loading. Wrap the stream and the existing iteration in try-with-resources so resources are released on normal completion and when file reading or YAML parsing fails. ### Tests - `mvn -o -pl paimon-benchmark/paimon-cluster-benchmark -Pflink1 -DskipTests compile` passed, including Checkstyle and Spotless checks. - `git diff --check` passed. - No new automated tests were added for this resource-lifetime change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
