mirror of https://github.com/apache/lucene.git
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:
parent
6b71440883
commit
e6f4e7dc64
|
@ -34,6 +34,7 @@ Bug Fixes
|
|||
* SOLR-1638: Fixed NullPointerException during import if uniqueKey is not specified
|
||||
in schema (Akshay Ukey via shalin)
|
||||
|
||||
* SOLR-1639: Fixed misleading error message when dataimport.properties is not writable (shalin)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -229,7 +229,13 @@ public class DocBuilder {
|
|||
if (requestParameters.optimize)
|
||||
addStatusMessage("Optimized");
|
||||
}
|
||||
writer.persist(lastIndexTimeProps);
|
||||
try {
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue