[ 
https://issues.apache.org/jira/browse/LUCENE-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shai Erera reopened LUCENE-4061:
--------------------------------


Jenkins failed with this stack trace:

Stack Trace:
java.lang.AssertionError: mismatch number of categories
expected:<21684> but was:<22301>
       at 
__randomizedtesting.SeedInfo.seed([FA7ED469F531418D:5C8E16F49462A144]:0)
       at org.junit.Assert.fail(Assert.java:93)
       at org.junit.Assert.failNotEquals(Assert.java:647)
       at org.junit.Assert.assertEquals(Assert.java:128)
       at org.junit.Assert.assertEquals(Assert.java:472)
       at 
org.apache.lucene.facet.taxonomy.directory.TestDirectoryTaxonomyWriter.testConcurrency(TestDirectoryTaxonomyWriter.java:263)

reproduce with: ant test -Dtestcase=TestDirectoryTaxonomyWriter 
-Dtests.method=testConcurrency -Dtests.seed=FA7ED469F531418D 
-Dtests.multiplier=3
-Dtests.nightly=true 
-Dtests.linedocsfile=/home/hudson/lucene-data/enwiki.random.lines.txt 
-Dtests.locale=sk_SK -Dtests.timezone=Africa/Nairobi
-Dargs="-Dfile.encoding=ISO8859-1"

I still wasn't able to reproduce it on my machine. Digging into this.
                
> Improvements to DirectoryTaxonomyWriter (synchronization and others)
> --------------------------------------------------------------------
>
>                 Key: LUCENE-4061
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4061
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 4.0, 5.0
>
>         Attachments: LUCENE-4061.patch, LUCENE-4061.patch
>
>
> DirTaxoWriter synchronizes in too many places. For instance addCategory() is 
> fully synchronized, while only a small part of it needs to be.
> Additionally, getCacheMemoryUsage looks bogus - it depends on the type of the 
> TaxoWriterCache. No code uses it, so I'd like to remove it -- whoever is 
> interested can query the specific cache impl it has. Currently, only 
> Cl2oTaxoWriterCache supports it.
> If the changes will be simple, I'll port them to 3.6.1 as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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