Skip to content

Commit

Permalink
IndexBuilder: Close IncrementalIndex when done. (apache#3734)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianm authored and pjain1 committed Dec 2, 2016
1 parent 353fee7 commit f4cc8c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions processing/src/test/java/io/druid/segment/IndexBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public QueryableIndex buildMMappedIndex()
{
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,
Expand Down

0 comments on commit f4cc8c2

Please sign in to comment.