You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Created) (JIRA)" <ji...@apache.org> on 2012/01/24 18:16:40 UTC

[jira] [Created] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

OOM in TestBeiderMorseFilter.testRandom
---------------------------------------

                 Key: LUCENE-3720
                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
             Project: Lucene - Java
          Issue Type: Test
          Components: modules/analysis
    Affects Versions: 3.6, 4.0
            Reporter: Robert Muir


This has been OOM'ing a lot... we should see why, its likely a real bug.

ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Updated] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-3720:
--------------------------------

    Attachment: LUCENE-3720.patch

patch upgrading the jar, re-enabling the test, and removing the warnings.

I ran the following 100 times from a shell script with no fails:

ant test -Dtestcase=TestBeiderMorseFilter -Dtests.multiplier=3 -Dtests.nightly=true -Dtestmethod=testRandom
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-3720.patch
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Thomas Neidhart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231634#comment-13231634 ] 

Thomas Neidhart commented on LUCENE-3720:
-----------------------------------------

Hi,

I looked at the testcase and it runs through with the patched commons-codec, but I received an assertion:

{noformat}
    [junit] Testcase: testRandom(org.apache.lucene.analysis.phonetic.TestBeiderMorseFilter):	FAILED
    [junit] term 8 expected:<skript[Skriptsk]ript> but was:<skript[dZriptdZ]ript>
    [junit] junit.framework.AssertionFailedError: term 8 expected:<skript[Skriptsk]ript> but was:<skript[dZriptdZ]ript>
{noformat}
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224628#comment-13224628 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

There is now a patch on CODEC-132 , I haven't had the time to try to apply-rebuild-test with it, but it seems like the right fix.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Resolved] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir resolved LUCENE-3720.
---------------------------------

    Resolution: Fixed

Thanks for fixing this Thomas!

I opened LUCENE-4400 to add support for the new 1.7 encoder.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-3720.patch
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Thomas Neidhart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232325#comment-13232325 ] 

Thomas Neidhart commented on LUCENE-3720:
-----------------------------------------

Ok, it took me some while to understand the test. In fact my original statement was wrong, the output order of the codec was not deterministic. This has been fixed in commons-codec, and the test runs through now.

btw. the next release will happen quite soon afaik and will also include a new phonetic encoder called Nysiis, which should perform slightly better than Soundex (see [https://issues.apache.org/jira/browse/CODEC-63]). Any feedback is very welcome!
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232738#comment-13232738 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

Thanks so much for digging into this Thomas!

When the release comes out we can add support and tests for the new encoder too.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193937#comment-13193937 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

I'm still working on a testcase for this.

I think the underlying commons-codec algorithm "blows up" on some inputs, especially those from randomHtmlIshString.
Then given multiple threads its easy for it to OOM.

So far the best i have is: (ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testOOM -Dtests.seed=320e23c1f5dbf9c5:-766b86e7dc5e81df:148a8a4955f89b5e -Dargs="-Dfile.encoding=UTF-8" -Dtests.heapsize=64M

This blows up, so I just have to get it to log the string that blows up I think, and we have a start to a testcase.

{code}
  public void testOOM() throws Exception {
    int numIter = 100000;
    int numTokens = 0;
    for (int i = 0; i < numIter; i++) {
      String s = _TestUtil.randomHtmlishString(random, 30);
      TokenStream ts = analyzer.tokenStream("bogus", new StringReader(s));
      ts.reset();
      while (ts.incrementToken()) {
        numTokens++;
      }
      ts.end();
      ts.close();
    }
    System.out.println(numTokens);
  }
{code}
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Michael McCandless (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194087#comment-13194087 ] 

Michael McCandless commented on LUCENE-3720:
--------------------------------------------

I don't think we need to remove the Tokenfilter just because it has a known bug.  It could be this is rarely hit in practice / on more normal input.  All software has bugs...
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Issue Comment Edited] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Thomas Neidhart (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232325#comment-13232325 ] 

Thomas Neidhart edited comment on LUCENE-3720 at 3/18/12 8:47 PM:
------------------------------------------------------------------

Ok, it took me some time to understand the test and filter code. In fact my original statement was wrong, the output order of phoneme tokens from the codec was not deterministic. This has been fixed in commons-codec, and the test runs through now.

btw. the next release will happen quite soon afaik and will also include a new phonetic encoder called Nysiis, which should perform slightly better than Soundex (see [https://issues.apache.org/jira/browse/CODEC-63]). Any feedback is very welcome!
                
      was (Author: tn):
    Ok, it took me some while to understand the test. In fact my original statement was wrong, the output order of the codec was not deterministic. This has been fixed in commons-codec, and the test runs through now.

btw. the next release will happen quite soon afaik and will also include a new phonetic encoder called Nysiis, which should perform slightly better than Soundex (see [https://issues.apache.org/jira/browse/CODEC-63]). Any feedback is very welcome!
                  
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Uwe Schindler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194071#comment-13194071 ] 

Uwe Schindler commented on LUCENE-3720:
---------------------------------------

I think we should disable the whole TokenFilter for now until this is fixed. It was not yet released as far as I know. So I would suggest to temporary "svn rm" it and revert this once this is fixed. This makes it disappear from 3.6 Release, but it's not lost. We should keep this issue open, until the root cause is fixed.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Updated] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-3720:
--------------------------------

    Fix Version/s: 4.0
                   5.0

Commons-codec 1.7 has been released with fixes. I'm testing them out now.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Assigned] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir reassigned LUCENE-3720:
-----------------------------------

    Assignee: Robert Muir
    
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232264#comment-13232264 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

Thomas: the filter is ok, it does not need to be thread safe.
Analyzer has as threadlocal for the tokenizer chain, each
thread gets its own filter.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194053#comment-13194053 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

For now I added a big red bold warning and disabled the test.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194106#comment-13194106 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

I suspect (as noted on CODEC-132) that this is caused by certain punctuation. I can dig a little, could be we apply a temporary
workaround sanitising the offending character (and long term/better, create a fix for CODEC-132)
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231641#comment-13231641 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

Hmm i havent tested the patched version yet myself, but thats probably where we check that
the output is deterministic (we replay the same random strings again and check the output is the same as before).

                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456411#comment-13456411 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

I looked, it seems they are still in the release process (its just that 1.7 is starting to appear on mirrors).

we should wait until the official release announcement for the upgrade.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-3720.patch
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193955#comment-13193955 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

Here's an initial test:
{noformat}
  public void testOOM2() throws Exception {
    String test = "200697900'-->&#1913348150;</  bceaeef >aadaabcf\"aedfbff<!--\'-->?>cae" +
        "cfaaa><?&#<!--</script>&lang&fc;aadeaf?>>&bdquo<    cc =\"abff\"    /></   afe  >" +
        "<script><!-- f(';<    cf aefbeef = \"bfabadcf\" ebbfeedd = fccabeb >";
    TokenStream ts = analyzer.tokenStream("bogus", new StringReader(test));
    ts.reset();
    while (ts.incrementToken()) {
      ;
    }
    ts.end();
    ts.close();
  }
{noformat}

Ill see if i can make it blow up with a smaller string, and then port the test to just use commons-codec apis (not lucene ones).

                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Thomas Neidhart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232021#comment-13232021 ] 

Thomas Neidhart commented on LUCENE-3720:
-----------------------------------------

The BeiderMorseFilter uses internally a java.util.regex.Matcher which is not supposed to be thread-safe. When doing the random test, the same analyzer is used by different threads, so my first guess would be that the problems are related to this somehow.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457075#comment-13457075 ] 

Robert Muir commented on LUCENE-3720:
-------------------------------------

Release is officially out: http://mail-archives.apache.org/mod_mbox/www-announce/201209.mbox/%3CCACZkXPz4wOAzRVf41h6PSVDp9PV-3uj%3D8e2ZViByeX5EpmYWzw%40mail.gmail.com%3E

I'll run tests/checks with the patch and commit shortly.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0-ALPHA
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-3720.patch
>
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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


[jira] [Commented] (LUCENE-3720) OOM in TestBeiderMorseFilter.testRandom

Posted by "Thomas Neidhart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231907#comment-13231907 ] 

Thomas Neidhart commented on LUCENE-3720:
-----------------------------------------

The test starts multiple threads for the analysis, so maybe there is a concurrency problem in the BeiderMorseCodec.
When doing a similar test sequentially, the result is always the same.

I will look further into this.
                
> OOM in TestBeiderMorseFilter.testRandom
> ---------------------------------------
>
>                 Key: LUCENE-3720
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3720
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/analysis
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> This has been OOM'ing a lot... we should see why, its likely a real bug.
> ant test -Dtestcase=TestBeiderMorseFilter -Dtestmethod=testRandom -Dtests.seed=2e18f456e714be89:310bba5e8404100d:-3bd11277c22f4591 -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"

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