lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Created] (SOLR-2673) (Possibly) Caching(???) issues with TestFiltering and RequiredFieldsTest (and few more)
Date Sun, 24 Jul 2011 12:16:09 GMT
(Possibly) Caching(???)  issues with TestFiltering and RequiredFieldsTest (and few more)

                 Key: SOLR-2673
             Project: Solr
          Issue Type: Bug
            Reporter: Uwe Schindler

With Java7 (b147) Solr tests fail, seems to be because of caching (maybe ConcurrentLRUCache
violates Java Memory Model, which can be seen in Java 7 only):

Example TestFiltering (passes sometimes):

    [junit] Testsuite:
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 6,082 sec
    [junit] ------------- Standard Error -----------------
    [junit] VII 24, 2011 4:53:02 AM org.apache.solr.SolrTestCaseJ4 assertJQ
    [junit] SEVERE: query failed JSON validation. error=mismatch: '3'!='2' @ response/docs/[0]/val_i
    [junit]  expected =/response/docs==[{"val_i":3}]
    [junit]  response = {
    [junit]   "responseHeader":{
    [junit]     "status":0,
    [junit]     "QTime":11},
    [junit]   "response":{"numFound":5,"start":2,"docs":[
    [junit]       {
    [junit]         "val_i":2}]
    [junit]   }}
    [junit]  request = fl=val_i&sort=val_i+asc&start=2&q={!cache%3Dfalse}*:*&rows=1
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestFiltering -Dtestmethod=testCaching
    [junit] NOTE: test params are: codec=RandomCodecProvider: {id=MockFixedIntBlock(blockSize=571),
e=571)}, locale=bg, timezone=Pacific/Galapagos
    [junit] NOTE: all tests run in this JVM:
    [junit] [TestFiltering]
    [junit] NOTE: Windows 7 6.1 amd64/Oracle Corporation 1.7.0 (64-bit)/cpus=2,threads=1,free=253309552,total=262799360
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testCaching(        Caused an
    [junit] mismatch: '3'!='2' @ response/docs/[0]/val_i
    [junit] java.lang.RuntimeException: mismatch: '3'!='2' @ response/docs/[0]/val_i
    [junit]     at org.apache.solr.SolrTestCaseJ4.assertJQ(
    [junit]     at org.apache.solr.SolrTestCaseJ4.assertJQ(
    [junit]     at
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit] Test FAILED

It is definitely not a Hotspot issue, as it also happens with -Xint and -Xbatch.

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message