You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2009/12/18 10:03:18 UTC

[jira] Created: (LUCENE-2170) Thread starvation problems in some tests

Thread starvation problems in some tests
----------------------------------------

                 Key: LUCENE-2170
                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Uwe Schindler
            Assignee: Uwe Schindler
             Fix For: 3.1


In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).

This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler commented on LUCENE-2170:
---------------------------------------

If we want to enable builds of 3.0 or 2.9 branch on hudson, we must backport this.

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170-tag.patch, LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler updated LUCENE-2170:
----------------------------------

    Attachment: LUCENE-2170-tag.patch
                LUCENE-2170.patch

small update in patches (while loop).

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170-tag.patch, LUCENE-2170-tag.patch, LUCENE-2170.patch, LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler updated LUCENE-2170:
----------------------------------

    Attachment: LUCENE-2170-tag.patch

Patch for bw branch.

I will commit soon.

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170-tag.patch, LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Resolved: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler resolved LUCENE-2170.
-----------------------------------

    Resolution: Fixed

Committed revision: 892216

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170-tag.patch, LUCENE-2170-tag.patch, LUCENE-2170.patch, LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2170) Thread starvation problems in some tests

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

Michael McCandless commented on LUCENE-2170:
--------------------------------------------

Ugh!

Looks good Uwe.  Thanks!

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler updated LUCENE-2170:
----------------------------------

    Attachment: LUCENE-2170.patch

Patch that fixes this issue. I will port to backwards, too.

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2170) Thread starvation problems in some tests

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

Uwe Schindler commented on LUCENE-2170:
---------------------------------------

This patch also fixes incorrect multi-threaded use of a boolean variable. I made it volatile.

> Thread starvation problems in some tests
> ----------------------------------------
>
>                 Key: LUCENE-2170
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2170
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>
>         Attachments: LUCENE-2170.patch
>
>
> In some of the tests, a time limit is set and the tests have a "while (inTime)" loop. If creation of thread under heavy load is too slow, the tasks are not done. Most tests are only useful, if the task is at least done once (most would even fail).
> This thread changes the loops to be do...while, so the task is run at least one time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org