mirror of https://github.com/apache/druid.git
IndexBuilder: Close IncrementalIndex when done. (#3734)
This commit is contained in:
parent
353fee79dd
commit
f4cc8c2b2f
|
@ -118,8 +118,7 @@ public class IndexBuilder
|
|||
{
|
||||
Preconditions.checkNotNull(indexMerger, "indexMerger");
|
||||
Preconditions.checkNotNull(tmpDir, "tmpDir");
|
||||
final IncrementalIndex incrementalIndex = buildIncrementalIndex();
|
||||
try {
|
||||
try (final IncrementalIndex incrementalIndex = buildIncrementalIndex()) {
|
||||
return TestHelper.getTestIndexIO().loadIndex(
|
||||
indexMerger.persist(
|
||||
incrementalIndex,
|
||||
|
|
Loading…
Reference in New Issue