yaooqinn opened a new pull request #4149:
URL: https://github.com/apache/iceberg/pull/4149


   This PR fixes a minor issue for a jmh test - 
`SparkParquetWritersFlatDataBenchmark`
   
   The `dataFile` holds mocked outputs now cleaned at `Level.Trial` which will 
be executed after the set of benchmark iterations. Then, it cause errors like 
below.
   
   ```java
   # Warmup Iteration   1: 7.251 s/op
   # Warmup Iteration   2: <failure>
   
   org.apache.iceberg.exceptions.AlreadyExistsException: File already exists: 
/Users/kentyao/iceberg/spark/v3.2/spark/build/tmp/jmh/parquet-flat-data-benchmark3385433263675547096.parquet
        at org.apache.iceberg.Files$LocalOutputFile.create(Files.java:58)
        at 
org.apache.iceberg.parquet.ParquetIO$ParquetOutputFile.create(ParquetIO.java:148)
   ```
   
   In this PR, I set the TearDown level to Iteration to make the dataFile be 
deleted after each iteration.


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