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(indexMerger, "indexMerger");
|
||||||
Preconditions.checkNotNull(tmpDir, "tmpDir");
|
Preconditions.checkNotNull(tmpDir, "tmpDir");
|
||||||
final IncrementalIndex incrementalIndex = buildIncrementalIndex();
|
try (final IncrementalIndex incrementalIndex = buildIncrementalIndex()) {
|
||||||
try {
|
|
||||||
return TestHelper.getTestIndexIO().loadIndex(
|
return TestHelper.getTestIndexIO().loadIndex(
|
||||||
indexMerger.persist(
|
indexMerger.persist(
|
||||||
incrementalIndex,
|
incrementalIndex,
|
||||||
|
|
Loading…
Reference in New Issue