You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2011/08/03 20:15:26 UTC

[jira] [Created] (SOLR-2695) DIH's TestThreaded sometimes fails

DIH's TestThreaded sometimes fails
----------------------------------

                 Key: SOLR-2695
                 URL: https://issues.apache.org/jira/browse/SOLR-2695
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
            Reporter: Michael McCandless


{{ant test -Dtestcase=TestThreaded -Dtestmethod=testCompositePk_FullImport -Dtests.seed=-1937805576288697697:-9126472343809792878}} sometimes hits this:

{noformat}

    [junit] 3-aug-2011 15:11:57 org.apache.solr.handler.dataimport.DocBuilder doFullDump
    [junit] SEVERE: error in import
    [junit] java.lang.ArrayIndexOutOfBoundsException: 1
    [junit] 	at java.util.ArrayList.add(ArrayList.java:352)
    [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.runAThread(DocBuilder.java:523)
    [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.access$000(DocBuilder.java:396)
    [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner$1.run(DocBuilder.java:449)
    [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    [junit] 	at java.lang.Thread.run(Thread.java:619)
    [junit] 3-aug-2011 15:11:57 org.apache.solr.SolrTestCaseJ4 assertQ

{noformat}

I think it's a thread safety bug in the debug code (an ArrayList is add'd w/o sync) only if {{reqParams.debug}}.

--
This message is automatically generated by JIRA.
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] (SOLR-2695) DIH's TestThreaded sometimes fails

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-2695:
----------------------------------------

    Attachment: SOLR-2695.patch

The debug documents list needs to be synchronized.

> DIH's TestThreaded sometimes fails
> ----------------------------------
>
>                 Key: SOLR-2695
>                 URL: https://issues.apache.org/jira/browse/SOLR-2695
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Michael McCandless
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-2695.patch
>
>
> {{ant test -Dtestcase=TestThreaded -Dtestmethod=testCompositePk_FullImport -Dtests.seed=-1937805576288697697:-9126472343809792878}} sometimes hits this:
> {noformat}
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.handler.dataimport.DocBuilder doFullDump
>     [junit] SEVERE: error in import
>     [junit] java.lang.ArrayIndexOutOfBoundsException: 1
>     [junit] 	at java.util.ArrayList.add(ArrayList.java:352)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.runAThread(DocBuilder.java:523)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.access$000(DocBuilder.java:396)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner$1.run(DocBuilder.java:449)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.SolrTestCaseJ4 assertQ
> {noformat}
> I think it's a thread safety bug in the debug code (an ArrayList is add'd w/o sync) only if {{reqParams.debug}}.

--
This message is automatically generated by JIRA.
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] (SOLR-2695) DIH's TestThreaded sometimes fails

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar resolved SOLR-2695.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3
                   4.0

Committed revision 1153844 on trunk and 1153848 on branch_3x.

> DIH's TestThreaded sometimes fails
> ----------------------------------
>
>                 Key: SOLR-2695
>                 URL: https://issues.apache.org/jira/browse/SOLR-2695
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Michael McCandless
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.0, 3.3
>
>         Attachments: SOLR-2695-branch_3x.patch, SOLR-2695.patch
>
>
> {{ant test -Dtestcase=TestThreaded -Dtestmethod=testCompositePk_FullImport -Dtests.seed=-1937805576288697697:-9126472343809792878}} sometimes hits this:
> {noformat}
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.handler.dataimport.DocBuilder doFullDump
>     [junit] SEVERE: error in import
>     [junit] java.lang.ArrayIndexOutOfBoundsException: 1
>     [junit] 	at java.util.ArrayList.add(ArrayList.java:352)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.runAThread(DocBuilder.java:523)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.access$000(DocBuilder.java:396)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner$1.run(DocBuilder.java:449)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.SolrTestCaseJ4 assertQ
> {noformat}
> I think it's a thread safety bug in the debug code (an ArrayList is add'd w/o sync) only if {{reqParams.debug}}.

--
This message is automatically generated by JIRA.
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] (SOLR-2695) DIH's TestThreaded sometimes fails

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar reassigned SOLR-2695:
-------------------------------------------

    Assignee: Shalin Shekhar Mangar

> DIH's TestThreaded sometimes fails
> ----------------------------------
>
>                 Key: SOLR-2695
>                 URL: https://issues.apache.org/jira/browse/SOLR-2695
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Michael McCandless
>            Assignee: Shalin Shekhar Mangar
>
> {{ant test -Dtestcase=TestThreaded -Dtestmethod=testCompositePk_FullImport -Dtests.seed=-1937805576288697697:-9126472343809792878}} sometimes hits this:
> {noformat}
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.handler.dataimport.DocBuilder doFullDump
>     [junit] SEVERE: error in import
>     [junit] java.lang.ArrayIndexOutOfBoundsException: 1
>     [junit] 	at java.util.ArrayList.add(ArrayList.java:352)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.runAThread(DocBuilder.java:523)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.access$000(DocBuilder.java:396)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner$1.run(DocBuilder.java:449)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.SolrTestCaseJ4 assertQ
> {noformat}
> I think it's a thread safety bug in the debug code (an ArrayList is add'd w/o sync) only if {{reqParams.debug}}.

--
This message is automatically generated by JIRA.
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] (SOLR-2695) DIH's TestThreaded sometimes fails

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-2695:
----------------------------------------

    Attachment: SOLR-2695-branch_3x.patch

Patch for branch_3x

> DIH's TestThreaded sometimes fails
> ----------------------------------
>
>                 Key: SOLR-2695
>                 URL: https://issues.apache.org/jira/browse/SOLR-2695
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Michael McCandless
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-2695-branch_3x.patch, SOLR-2695.patch
>
>
> {{ant test -Dtestcase=TestThreaded -Dtestmethod=testCompositePk_FullImport -Dtests.seed=-1937805576288697697:-9126472343809792878}} sometimes hits this:
> {noformat}
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.handler.dataimport.DocBuilder doFullDump
>     [junit] SEVERE: error in import
>     [junit] java.lang.ArrayIndexOutOfBoundsException: 1
>     [junit] 	at java.util.ArrayList.add(ArrayList.java:352)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.runAThread(DocBuilder.java:523)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner.access$000(DocBuilder.java:396)
>     [junit] 	at org.apache.solr.handler.dataimport.DocBuilder$EntityRunner$1.run(DocBuilder.java:449)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] 3-aug-2011 15:11:57 org.apache.solr.SolrTestCaseJ4 assertQ
> {noformat}
> I think it's a thread safety bug in the debug code (an ArrayList is add'd w/o sync) only if {{reqParams.debug}}.

--
This message is automatically generated by JIRA.
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