taoran92 opened a new pull request, #10449:
URL: https://github.com/apache/paimon/pull/10449

   ### Purpose
   
   Fixes #10445.
   
   CI license checks can leave directory resources open when traversal or 
filtering fails in `JarFileChecker.getBuildJars()` or 
`NoticeFileChecker.findNoticeFiles()`. Wrap both `Files.walk()` streams in 
try-with-resources to ensure cleanup on success and failure.
   
   ### Tests
   
   - `mvn -o -pl tools/ci/paimon-ci-tools -DwildcardSuites=none 
-Dtest=JarFileCheckerTest,NoticeFileCheckerTest test` passed: 27 tests, 
including Checkstyle and Spotless checks.
   - `git diff --check` passed.
   - No new 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]

Reply via email to