SOLR-1639 -- Fixed misleading error message when dataimport.properties is not writable

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@889127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-12-10 07:54:12 +00:00
parent 6b71440883
commit e6f4e7dc64
2 changed files with 8 additions and 1 deletions

View File

@ -34,6 +34,7 @@ Bug Fixes
* SOLR-1638: Fixed NullPointerException during import if uniqueKey is not specified * SOLR-1638: Fixed NullPointerException during import if uniqueKey is not specified
in schema (Akshay Ukey via shalin) in schema (Akshay Ukey via shalin)
* SOLR-1639: Fixed misleading error message when dataimport.properties is not writable (shalin)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -229,7 +229,13 @@ public class DocBuilder {
if (requestParameters.optimize) if (requestParameters.optimize)
addStatusMessage("Optimized"); addStatusMessage("Optimized");
} }
try {
writer.persist(lastIndexTimeProps); writer.persist(lastIndexTimeProps);
} catch (Exception e) {
LOG.error("Could not write property file", e);
statusMessages.put("error", "Could not write property file. Delta imports will not work. " +
"Make sure your conf directory is writable");
}
} }
void rollback() { void rollback() {