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
|
null
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
File baseFlushFile = File.createTempFile("base", "flush");
|
File baseFlushFile = FileUtils.createTempDir("base-flush");
|
||||||
baseFlushFile.delete();
|
|
||||||
baseFlushFile.mkdirs();
|
|
||||||
|
|
||||||
Set<File> toMerge = new TreeSet<>();
|
Set<File> toMerge = new TreeSet<>();
|
||||||
int indexCount = 0;
|
int indexCount = 0;
|
||||||
int lineCount = 0;
|
int lineCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue