lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3869) possible hang in UIMATypeAwareAnalyzerTest
Date Wed, 14 Mar 2012 15:20:39 GMT

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

Robert Muir commented on LUCENE-3869:
-------------------------------------

If you try this seed a lot of times, eventually it will reproduce.

I tried adding -Dtests.iter=10 to my command-line, 
so 'ant test -Dtestcase=UIMATypeAwareAnalyzerTest -Dtests.seed=-262aada3325aa87a:-44863926cf5c87e9:5c8c471d901b98bd
-Dtests.iter=10'

after about 3 or 4 runs it hung... though interestingly it hung at 200% cpu usage (as if two
of the analysis threads were stuck).

Stacktrace is in the same place, just for both threads:
{noformat}
    [junit] "Thread-48" prio=10 tid=0x00007fbec0b9c000 nid=0x4979 runnable [0x00007fbebfa7d000]
    [junit]    java.lang.Thread.State: RUNNABLE
    [junit] 	at java.util.HashMap.getEntry(HashMap.java:347)
    [junit] 	at java.util.HashMap.containsKey(HashMap.java:335)
    [junit] 	at java.util.HashSet.contains(HashSet.java:184)
    [junit] 	at org.apache.uima.analysis_engine.impl.AnalysisEngineManagementImpl.setName(AnalysisEngineManagementImpl.java:242)
    [junit] 	at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:181)
    [junit] 	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:127)
    [junit] 	at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
    [junit] 	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    [junit] 	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
    [junit] 	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
    [junit] 	at org.apache.lucene.analysis.uima.ae.BasicAEProvider.getAE(BasicAEProvider.java:73)
    [junit] 	at org.apache.lucene.analysis.uima.BaseUIMATokenizer.<init>(BaseUIMATokenizer.java:45)
    [junit] 	at org.apache.lucene.analysis.uima.UIMATypeAwareAnnotationsTokenizer.<init>(UIMATypeAwareAnnotationsTokenizer.java:54)
    [junit] 	at org.apache.lucene.analysis.uima.UIMATypeAwareAnalyzer.createComponents(UIMATypeAwareAnalyzer.java:40)
    [junit] 	at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:83)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:368)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:338)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:330)
    [junit] 
    [junit] "Thread-46" prio=10 tid=0x00007fbec10df000 nid=0x4977 runnable [0x00007fbebfb7e000]
    [junit]    java.lang.Thread.State: RUNNABLE
    [junit] 	at java.util.HashMap.getEntry(HashMap.java:347)
    [junit] 	at java.util.HashMap.containsKey(HashMap.java:335)
    [junit] 	at java.util.HashSet.contains(HashSet.java:184)
    [junit] 	at org.apache.uima.analysis_engine.impl.AnalysisEngineManagementImpl.setName(AnalysisEngineManagementImpl.java:242)
    [junit] 	at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:181)
    [junit] 	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:127)
    [junit] 	at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
    [junit] 	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    [junit] 	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
    [junit] 	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
    [junit] 	at org.apache.lucene.analysis.uima.ae.BasicAEProvider.getAE(BasicAEProvider.java:73)
    [junit] 	at org.apache.lucene.analysis.uima.BaseUIMATokenizer.<init>(BaseUIMATokenizer.java:45)
    [junit] 	at org.apache.lucene.analysis.uima.UIMATypeAwareAnnotationsTokenizer.<init>(UIMATypeAwareAnnotationsTokenizer.java:54)
    [junit] 	at org.apache.lucene.analysis.uima.UIMATypeAwareAnalyzer.createComponents(UIMATypeAwareAnalyzer.java:40)
    [junit] 	at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:83)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:368)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:338)
    [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:330)
{noformat}

                
> possible hang in UIMATypeAwareAnalyzerTest
> ------------------------------------------
>
>                 Key: LUCENE-3869
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3869
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>
> Just testing an unrelated patch, I was hung (with 100% cpu) in UIMATypeAwareAnalyzerTest.
> I'll attach stacktrace at the moment of the hang.
> The fact we get a seed in the actual stacktraces for cases like this is awesome! Thanks
Dawid!
> I don't think it reproduces 100%, but I'll try beasting this seed to see if i can reproduce
the hang:
> should be 'ant test -Dtestcase=UIMATypeAwareAnalyzerTest -Dtests.seed=-262aada3325aa87a:-44863926cf5c87e9:5c8c471d901b98bd'

> from what I can see.

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message