Ankitkj1999 opened a new pull request, #18939:
URL: https://github.com/apache/iceberg/pull/18939

   Fixes #18938
   
   PartitionStatsHandlerTestBase#testCopyOnWriteDelete left PartitionStatistics 
scans unclosed, leaking file descriptors on temporary Avro files. On Windows, 
this prevented JUnit from deleting the temporary directory on teardown, failing 
TestAvroPartitionStatsHandler. Wrap both scans in try-with-resources to release 
open file handles on completion.
   
   Test plan: Ran :iceberg-core:test --tests 
org.apache.iceberg.avro.TestAvroPartitionStatsHandler on Windows to verify 
@TempDir clean teardown.
   
   ---
   **AI Disclosure**
   - Model: Gemini 2.5 Pro
   - Platform/Tool: Antigravity
   - Human Oversight: [unknown - human to fill in]
   - Prompt Summary: Validated test file lock failure on Windows and closed 
PartitionStatistics scan with try-with-resources.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to