From 4c6d63f97589de6474d67719f6c2ca0a8368b269 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Thu, 21 May 2009 06:17:01 +0000 Subject: [PATCH] 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 --- .../java/org/apache/solr/handler/dataimport/DataImporter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImporter.java b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImporter.java index c891366aafd..a6eba48c10f 100644 --- a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImporter.java +++ b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImporter.java @@ -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);