liran-funaro commented on a change in pull request #10593:
URL: https://github.com/apache/druid/pull/10593#discussion_r533211577
##########
File path:
benchmarks/src/test/java/org/apache/druid/benchmark/indexing/IndexPersistBenchmark.java
##########
@@ -149,39 +138,44 @@ public void teardown()
incIndex = null;
}
- private IncrementalIndex makeIncIndex()
+ @Setup(Level.Invocation)
+ public void setupTemp()
+ {
+ tmpDir = FileUtils.createTempDir();
+ log.info("Using temp dir: " + tmpDir.getAbsolutePath());
+ }
+
+ @TearDown(Level.Invocation)
+ public void teardownTemp() throws IOException
{
- return new IncrementalIndex.Builder()
+ FileUtils.deleteDirectory(tmpDir);
Review comment:
Thanks!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]