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:
Noble Paul 2009-05-21 06:17:01 +00:00
parent 6ad33c1fb7
commit 4c6d63f975
1 changed files with 3 additions and 1 deletions

View File

@ -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);