mirror of https://github.com/apache/druid.git
Use FileUtils.createTempDir in IndexGeneratorJob. (#10568)
Simplifies code by using a method designed for this purpose.
This commit is contained in:
parent
cd231d8511
commit
20e7e53ede
|
@ -645,10 +645,7 @@ public class IndexGeneratorJob implements Jobby
|
|||
null
|
||||
);
|
||||
try {
|
||||
File baseFlushFile = File.createTempFile("base", "flush");
|
||||
baseFlushFile.delete();
|
||||
baseFlushFile.mkdirs();
|
||||
|
||||
File baseFlushFile = FileUtils.createTempDir("base-flush");
|
||||
Set<File> toMerge = new TreeSet<>();
|
||||
int indexCount = 0;
|
||||
int lineCount = 0;
|
||||
|
|
Loading…
Reference in New Issue