lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] [Commented] (SOLR-3884) possible bug in how commits are handled during "recovery" mode on startup?
Date Tue, 25 Sep 2012 17:48:10 GMT


Steven Rowe commented on SOLR-3884:

Hmm.. talking with sarowe on IRC, i think there may be a bug in his patch ... he cloned the
unpackDir he passes to testSolrExample, but i don't think testSolrExample actaully uses that
unpack dir for anything, it appears to just run the example relative the CWD.

Yup, buggy patch, I didn't chdir to the unpacked copy, so it was still sharing the original
dir between the two runs.  Here's the hopefully fixed patch:

Index: dev-tools/scripts/
--- dev-tools/scripts/       (revision 1389823)
+++ dev-tools/scripts/       (working copy)
@@ -533,12 +536,26 @@
     if project == 'lucene':
       testDemo(isSrc, version)
+      print('    copying unpacked distribution...')
+      java6UnpackPath = '%s-java6' %unpackPath
+      if os.path.exists(java6UnpackPath):
+        shutil.rmtree(java6UnpackPath)
+      shutil.copytree(unpackPath, java6UnpackPath)
+      chdir(java6UnpackPath)
       print('    test solr example w/ Java 6...')
-      testSolrExample(unpackPath, JAVA6_HOME, False)
+      testSolrExample(java6UnpackPath, JAVA6_HOME, False)
+      print('    copying unpacked distribution...')
+      java7UnpackPath = '%s-java7' %unpackPath
+      if os.path.exists(java7UnpackPath):
+        shutil.rmtree(java7UnpackPath)
+      shutil.copytree(unpackPath, java7UnpackPath)
+      chdir(java7UnpackPath)
       print('    test solr example w/ Java 7...')
-      testSolrExample(unpackPath, JAVA7_HOME, False)
+      testSolrExample(java7UnpackPath, JAVA7_HOME, False)
+      chdir(unpackPath)
   testChangesText('.', version, project)
> possible bug in how commits are handled during "recovery" mode on startup?
> --------------------------------------------------------------------------
>                 Key: SOLR-3884
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>         Attachments: java6.solr-example.log, java7.solr-example.log, solr-example.log
> while testing out 4.0-rc0, sarowe noted the he was seeing the smoke tester script fail
while sanity checking the solr example.
> I'm not certain, but looking at his logs, i think this suggests a bug in how commits
are handled when a newly started server is in "recovery" mode

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message