mirror of https://github.com/apache/lucene.git
SOLR-935 log a warning if it fails to acquire a lock
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@776965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6ad33c1fb7
commit
4c6d63f975
|
@ -365,8 +365,10 @@ public class DataImporter {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (!importLock.tryLock())
|
||||
if (!importLock.tryLock()){
|
||||
LOG.warn("Import command failed . another import is running");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Date lastModified = sw.loadIndexStartTime();
|
||||
setLastIndexTime(lastModified);
|
||||
|
|
Loading…
Reference in New Issue