You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2011/06/28 12:06:17 UTC

[jira] [Created] (LUCENE-3253) TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document

TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
---------------------------------------------------------------------------------------------------------------------

                 Key: LUCENE-3253
                 URL: https://issues.apache.org/jira/browse/LUCENE-3253
             Project: Lucene - Java
          Issue Type: Test
          Components: core/index
    Affects Versions: 3.4, 4.0
            Reporter: Simon Willnauer
            Priority: Minor
             Fix For: 3.4, 4.0
         Attachments: LUCENE-3253.patch

in TestIndexwriterWithThreads#testCloseWithThreads we loop until all threads have indexed a single document but if one or more threads fail on before they index the first doc the test hangs forever. We should check if the thread is still alive unless it has indexed a document and fail if it already died.

--
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] (LUCENE-3253) TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document

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

Simon Willnauer resolved LUCENE-3253.
-------------------------------------

       Resolution: Fixed
    Lucene Fields: [New, Patch Available]  (was: [New])

committed to trunk and backported to 3.x

> TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3253
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3253
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: core/index
>    Affects Versions: 3.4, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 3.4, 4.0
>
>         Attachments: LUCENE-3253.patch
>
>
> in TestIndexwriterWithThreads#testCloseWithThreads we loop until all threads have indexed a single document but if one or more threads fail on before they index the first doc the test hangs forever. We should check if the thread is still alive unless it has indexed a document and fail if it already died.

--
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] (LUCENE-3253) TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document

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

Simon Willnauer updated LUCENE-3253:
------------------------------------

    Attachment: LUCENE-3253.patch

here is a simple fix

> TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3253
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3253
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: core/index
>    Affects Versions: 3.4, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 3.4, 4.0
>
>         Attachments: LUCENE-3253.patch
>
>
> in TestIndexwriterWithThreads#testCloseWithThreads we loop until all threads have indexed a single document but if one or more threads fail on before they index the first doc the test hangs forever. We should check if the thread is still alive unless it has indexed a document and fail if it already died.

--
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] (LUCENE-3253) TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document

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

Simon Willnauer reassigned LUCENE-3253:
---------------------------------------

    Assignee: Simon Willnauer

> TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3253
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3253
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: core/index
>    Affects Versions: 3.4, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 3.4, 4.0
>
>         Attachments: LUCENE-3253.patch
>
>
> in TestIndexwriterWithThreads#testCloseWithThreads we loop until all threads have indexed a single document but if one or more threads fail on before they index the first doc the test hangs forever. We should check if the thread is still alive unless it has indexed a document and fail if it already died.

--
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] [Commented] (LUCENE-3253) TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document

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

Michael McCandless commented on LUCENE-3253:
--------------------------------------------

Patch looks good -- nice catch!

> TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3253
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3253
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: core/index
>    Affects Versions: 3.4, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 3.4, 4.0
>
>         Attachments: LUCENE-3253.patch
>
>
> in TestIndexwriterWithThreads#testCloseWithThreads we loop until all threads have indexed a single document but if one or more threads fail on before they index the first doc the test hangs forever. We should check if the thread is still alive unless it has indexed a document and fail if it already died.

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