mirror of https://github.com/apache/lucene.git
make writeLockTimeout work: SOLR-222
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0455f820c4
commit
246ad4dd57
|
@ -245,6 +245,9 @@ Bug Fixes
|
|||
and avoid use of "find -maxdepth" on platforms where it is not
|
||||
supported. (yonik)
|
||||
|
||||
12. SOLR-222: Changing writeLockTimeout in solrconfig.xml did not
|
||||
change the effective timeout. (Koji Sekiguchi via yonik)
|
||||
|
||||
|
||||
Other Changes
|
||||
1. Updated to Lucene 2.1
|
||||
|
|
|
@ -32,6 +32,7 @@ import java.util.logging.Logger;
|
|||
import javax.xml.xpath.XPathConstants;
|
||||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.IndexWriter;
|
||||
import org.apache.lucene.search.BooleanQuery;
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.store.FSDirectory;
|
||||
|
@ -84,6 +85,7 @@ public final class SolrCore {
|
|||
|
||||
static {
|
||||
BooleanQuery.setMaxClauseCount(SolrConfig.config.getInt("query/maxBooleanClauses",BooleanQuery.getMaxClauseCount()));
|
||||
if (mainIndexConfig.writeLockTimeout != -1) IndexWriter.setDefaultWriteLockTimeout(mainIndexConfig.writeLockTimeout);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -51,8 +51,7 @@ public class SolrIndexWriter extends IndexWriter {
|
|||
if (config.maxMergeDocs != -1) setMaxMergeDocs(config.maxMergeDocs);
|
||||
if (config.mergeFactor != -1) setMergeFactor(config.mergeFactor);
|
||||
if (config.maxFieldLength != -1) setMaxFieldLength(config.maxFieldLength);
|
||||
if (config.writeLockTimeout != -1) setWriteLockTimeout(config.writeLockTimeout);
|
||||
if (config.commitLockTimeout != -1) setWriteLockTimeout(config.commitLockTimeout);
|
||||
//if (config.commitLockTimeout != -1) setWriteLockTimeout(config.commitLockTimeout);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue