[ 
https://issues.apache.org/jira/browse/SOLR-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063366#comment-13063366
 ] 

Steven Rowe edited comment on SOLR-2551 at 7/11/11 2:39 PM:
------------------------------------------------------------

I'll switch the DIH tests to run sequentially.  The benchmark module does this 
by setting the {{tests.threadspercpu}} property to zero.

Here's the patch:

{noformat}
Index: solr/contrib/dataimporthandler/build.xml
===================================================================
--- solr/contrib/dataimporthandler/build.xml    (revision 1145189)
+++ solr/contrib/dataimporthandler/build.xml    (working copy)
@@ -23,6 +23,9 @@
     Data Import Handler
   </description>
 
+  <!-- the tests have some parallel problems: writability to single copy of 
dataimport.properties -->
+  <property name="tests.threadspercpu" value="0"/>
+
   <import file="../contrib-build.xml"/>
 
 </project>
{noformat}

Committing shortly.

      was (Author: steve_rowe):
    I'll switch the DIH tests to run sequentially.  The benchmark module does 
this by setting the {{tests.threadspercpu}} property to zero.

Here's the patch:

{{
Index: solr/contrib/dataimporthandler/build.xml
===================================================================
--- solr/contrib/dataimporthandler/build.xml    (revision 1145189)
+++ solr/contrib/dataimporthandler/build.xml    (working copy)
@@ -23,6 +23,9 @@
     Data Import Handler
   </description>
 
+  <!-- the tests have some parallel problems: writability to single copy of 
dataimport.properties -->
+  <property name="tests.threadspercpu" value="0"/>
+
   <import file="../contrib-build.xml"/>
 
 </project>
}}

Committing shortly.
  
> Check dataimport.properties for write access before starting import
> -------------------------------------------------------------------
>
>                 Key: SOLR-2551
>                 URL: https://issues.apache.org/jira/browse/SOLR-2551
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4.1, 3.1
>            Reporter: C S
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: SOLR-2551.patch
>
>
> A common mistake is that the /conf (respectively the dataimport.properties) 
> file is not writable for solr. It would be great if that were detected on 
> starting a dataimport job. 
> Currently and import might grind away for days and fail if it can't write its 
> timestamp to the dataimport.properties file.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to