Apache Solr open-source search software
fix DocMaker file handle leak: now with the actual fix :)
Shai Erera6c34d407cdb0
diff --git a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/DocMaker.java b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/DocMaker.javaindex 39c51bf5c7a..75eb5b5a24b 100644--- a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/DocMaker.java+++ b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/DocMaker.java@@ -428,9 +428,9 @@ public class DocMaker implements Closeable {public void setConfig(Config config) {this.config = config;try {- if (source != null) {- source.close();- }+ if (source != null) {+ source.close();+ }String sourceClass = config.get("content.source", "org.apache.lucene.benchmark.byTask.feeds.SingleDocSource");source = Class.forName(sourceClass).asSubclass(ContentSource.class).newInstance();source.setConfig(config);