You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jon Sanford (JIRA)" <ji...@apache.org> on 2008/07/29 02:04:31 UTC

[jira] Created: (SANDBOX-251) PipelineTest.java - Inconsistent Failures

PipelineTest.java - Inconsistent Failures
-----------------------------------------

                 Key: SANDBOX-251
                 URL: https://issues.apache.org/jira/browse/SANDBOX-251
             Project: Commons Sandbox
          Issue Type: Test
          Components: Pipeline
         Environment: Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)
            Reporter: Jon Sanford
            Priority: Minor


The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.

I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

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


[jira] Commented: (SANDBOX-251) PipelineTest.java - Inconsistent Failures

Posted by "Jon Sanford (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANDBOX-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658600#action_12658600 ] 

Jon Sanford commented on SANDBOX-251:
-------------------------------------

Verified that this fix is working on both Windows and OS X 10.5

> PipelineTest.java - Inconsistent Failures
> -----------------------------------------
>
>                 Key: SANDBOX-251
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-251
>             Project: Commons Sandbox
>          Issue Type: Test
>          Components: Pipeline
>         Environment: Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)
>            Reporter: Jon Sanford
>            Priority: Minor
>         Attachments: pipeline_test_sleep.patch
>
>
> The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.
> I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

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


[jira] Commented: (SANDBOX-251) PipelineTest.java - Inconsistent Failures

Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANDBOX-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657576#action_12657576 ] 

Rahul Akolkar commented on SANDBOX-251:
---------------------------------------

The changes applied as part of SANDBOX-271 fix this for me. Please try it out, and if you can confirm as well, we can resolve this.


> PipelineTest.java - Inconsistent Failures
> -----------------------------------------
>
>                 Key: SANDBOX-251
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-251
>             Project: Commons Sandbox
>          Issue Type: Test
>          Components: Pipeline
>         Environment: Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)
>            Reporter: Jon Sanford
>            Priority: Minor
>         Attachments: pipeline_test_sleep.patch
>
>
> The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.
> I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

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


[jira] Resolved: (SANDBOX-251) PipelineTest.java - Inconsistent Failures

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

Rahul Akolkar resolved SANDBOX-251.
-----------------------------------

    Resolution: Fixed

Resolving as fixed.


> PipelineTest.java - Inconsistent Failures
> -----------------------------------------
>
>                 Key: SANDBOX-251
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-251
>             Project: Commons Sandbox
>          Issue Type: Test
>          Components: Pipeline
>         Environment: Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)
>            Reporter: Jon Sanford
>            Priority: Minor
>         Attachments: pipeline_test_sleep.patch
>
>
> The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.
> I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

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


[jira] Updated: (SANDBOX-251) PipelineTest.java - Inconsistent Failures

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

Matt Sanford updated SANDBOX-251:
---------------------------------

    Attachment: pipeline_test_sleep.patch

I ran into this while working on SANDBOX-264 and SANDBOX-265 on Mac OS X 10.5. Attaching patch of the change.

> PipelineTest.java - Inconsistent Failures
> -----------------------------------------
>
>                 Key: SANDBOX-251
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-251
>             Project: Commons Sandbox
>          Issue Type: Test
>          Components: Pipeline
>         Environment: Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)
>            Reporter: Jon Sanford
>            Priority: Minor
>         Attachments: pipeline_test_sleep.patch
>
>
> The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.
> I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

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