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

Hoss Man commented on SOLR-2739:
--------------------------------

Failure Shawn reported seeing consistently with all seeds...

{noformat}
    [junit] 08/08/2011 10:05:13 م org.apache.solr.SolrTestCaseJ4 assertQ
    [junit] SEVERE: REQUEST FAILED: xpath=//*[@numFound='0']
    [junit]     xml response was: <?xml version="1.0" encoding="UTF-8"?>
    [junit] <response>
    [junit] <lst name="responseHeader"><int name="status">0</int><int 
name="QTime">1</int><lst name="params"><str name="start">0</str><str 
name="q">id:1</str><str name="qt">standard</str><str name="rows">20</str><str 
name="version">2.2</str></lst></lst><result name="response" numFound="1" 
start="0"><doc><arr name="desc"><str>hello</str></arr><str 
name="id">1</str><date 
name="timestamp">2011-08-08T19:05:13.353Z</date></doc></result>
    [junit] </response>
    [junit]
    [junit]     request was:start=0&q=id:1&qt=standard&rows=20&version=2.2
    [junit] 08/08/2011 10:05:13 م org.apache.solr.common.SolrException log
    [junit] SEVERE: REQUEST FAILED: 
start=0&q=id:1&qt=standard&rows=20&version=2.2:java.lang.RuntimeException: 
REQUEST FAILED: xpath=//*[@numFound='0']
    [junit]     xml response was: <?xml version="1.0" encoding="UTF-8"?>
    [junit] <response>
    [junit] <lst name="responseHeader"><int name="status">0</int><int 
name="QTime">1</int><lst name="params"><str name="start">0</str><str 
name="q">id:1</str><str name="qt">standard</str><str name="rows">20</str><str 
name="version">2.2</str></lst></lst><result name="response" numFound="1" 
start="0"><doc><arr name="desc"><str>hello</str></arr><str 
name="id">1</str><date 
name="timestamp">2011-08-08T19:05:13.353Z</date></doc></result>
    [junit] </response>
    [junit]
    [junit]     request was:start=0&q=id:1&qt=standard&rows=20&version=2.2
    [junit]     at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:377)
    [junit]     at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:351)
    [junit]     at 
org.apache.solr.handler.dataimport.TestSqlEntityProcessorDelta.testNonWritablePersistFile(TestSqlEntityProcessorDelta.java:121)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
    [junit]     at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    [junit]     at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    [junit]     at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    [junit]     at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    [junit]     at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
    [junit]     at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    [junit]     at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    [junit]     at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    [junit]     at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1339)
    [junit]     at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1241)
    [junit]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    [junit]     at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    [junit]     at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    [junit]     at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    [junit]     at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    [junit]     at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    [junit]     at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    [junit]     at 
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
    [junit]
    [junit] NOTE: reproduce with: ant test 
-Dtestcase=TestSqlEntityProcessorDelta -Dtestmethod=testNonWritablePersistFile 
-Dtests.seed=-792d6c110a4b6e96:1c3eeb109a03bb0b:-1ac8e3d1d169d356
    [junit] NOTE: test params are: locale=ar_SA, timezone=Asia/Amman
    [junit] NOTE: all tests run in this JVM:
    [junit] [TestCachedSqlEntityProcessor, TestClobTransformer, 
TestContentStreamDataSource, TestDataConfig, TestDateFormatTransformer, 
TestDocBuilder, TestDocBuilder2, TestDocBuilderThreaded, 
TestEntityProcessorBase, TestErrorHandling, TestEvaluatorBag, TestFieldReader, 
TestFileListEntityProcessor, TestJdbcDataSource, TestLineEntityProcessor, 
TestNumberFormatTransformer, TestPlainTextEntityProcessor, 
TestRegexTransformer, TestScriptTransformer, TestSqlEntityProcessor, 
TestSqlEntityProcessor2, TestSqlEntityProcessorDelta]
    [junit] NOTE: Linux 2.6.18-238.12.1.el5.centos.plusxen amd64/Sun 
Microsystems Inc. 1.6.0_26 
(64-bit)/cpus=3,threads=4,free=109853160,total=195952640
{noformat}

i can't reproduce, this exact error and i don't fully understand the test, but 
it seems to be attempting to verify that if the dataimport.properties file 
can't be written to, then after it "does some stuff", there are still no docs 
in the index.

the problem is that it conditionally tries to "do stuff" if the JVM says that 
it was able to mark the dataimport.properties as read only w/o any indication 
of this in the test output.  on top of that: the file it creates & attempts to 
mark read only is only cleaned up if all of this succeeds - and from my own 
testing that can cause problems in other tests in this class.

I'm going to change this silent conditional to an assumption, and move the file 
deletion logic into a higher up finally block, and see if that change the 
behavior on shawns box (if he starts seeing a message about the assumption 
failed, we'll have made progress)

> TestSqlEntityProcessorDelta.testNonWritablePersistFile failures on some 
> systems
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-2739
>                 URL: https://issues.apache.org/jira/browse/SOLR-2739
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.3
>            Reporter: Shawn Heisey
>            Assignee: Hoss Man
>             Fix For: 3.4, 4.0
>
>
> Shawn Heisey noted on the mailing list that he was getting consistent 
> failures from TestSqlEntityProcessorDelta.testNonWritablePersistFile on his 
> machine.
> I can't reproduce his exact failures, but the test is hinky enough that i 
> want to try and clean it up.

--
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