Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 24523 invoked from network); 10 Dec 2009 07:54:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 07:54:36 -0000 Received: (qmail 55899 invoked by uid 500); 10 Dec 2009 07:54:36 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 55848 invoked by uid 500); 10 Dec 2009 07:54:36 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 55836 invoked by uid 99); 10 Dec 2009 07:54:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 07:54:35 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 07:54:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 914FC23888FD; Thu, 10 Dec 2009 07:54:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r889127 - in /lucene/solr/trunk/contrib/dataimporthandler: CHANGES.txt src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java Date: Thu, 10 Dec 2009 07:54:13 -0000 To: solr-commits@lucene.apache.org From: shalin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091210075413.914FC23888FD@eris.apache.org> Author: shalin Date: Thu Dec 10 07:54:12 2009 New Revision: 889127 URL: http://svn.apache.org/viewvc?rev=889127&view=rev Log: SOLR-1639 -- Fixed misleading error message when dataimport.properties is not writable Modified: lucene/solr/trunk/contrib/dataimporthandler/CHANGES.txt lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java Modified: lucene/solr/trunk/contrib/dataimporthandler/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/CHANGES.txt?rev=889127&r1=889126&r2=889127&view=diff ============================================================================== --- lucene/solr/trunk/contrib/dataimporthandler/CHANGES.txt (original) +++ lucene/solr/trunk/contrib/dataimporthandler/CHANGES.txt Thu Dec 10 07:54:12 2009 @@ -34,6 +34,7 @@ * 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 ---------------------- Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java?rev=889127&r1=889126&r2=889127&view=diff ============================================================================== --- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java (original) +++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DocBuilder.java Thu Dec 10 07:54:12 2009 @@ -229,7 +229,13 @@ 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() {