You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Kristian Koehler (JIRA)" <ji...@apache.org> on 2008/05/21 13:40:54 UTC

[jira] Created: (SM-1366) Strange threading problems running quartz component tests

Strange threading problems running quartz component tests
---------------------------------------------------------

                 Key: SM-1366
                 URL: https://issues.apache.org/activemq/browse/SM-1366
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-quartz
    Affects Versions: 3.2.2
            Reporter: Kristian Koehler
         Attachments: quartz.patch

Hi

running the quartz tests causes strange failures on my machine. Sometimes the tests fail...

I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive. 
On my machine it seems that this timeslot is (sometimes) not 'enough'.

I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().  ;-)

Kristian


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


[jira] Assigned: (SM-1366) Strange threading problems running quartz component tests

Posted by "Kristian Koehler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Koehler reassigned SM-1366:
------------------------------------

    Assignee: Kristian Koehler

> Strange threading problems running quartz component tests
> ---------------------------------------------------------
>
>                 Key: SM-1366
>                 URL: https://issues.apache.org/activemq/browse/SM-1366
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-quartz
>    Affects Versions: 3.2.2
>            Reporter: Kristian Koehler
>            Assignee: Kristian Koehler
>         Attachments: quartz.patch
>
>
> Hi
> running the quartz tests causes strange failures on my machine. Sometimes the tests fail...
> I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive. 
> On my machine it seems that this timeslot is (sometimes) not 'enough'.
> I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().  ;-)
> Kristian

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


[jira] Commented: (SM-1366) Strange threading problems running quartz component tests

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44396#action_44396 ] 

Guillaume Nodet commented on SM-1366:
-------------------------------------

Wanna commit your patch now ?

> Strange threading problems running quartz component tests
> ---------------------------------------------------------
>
>                 Key: SM-1366
>                 URL: https://issues.apache.org/activemq/browse/SM-1366
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-quartz
>    Affects Versions: 3.2.2
>            Reporter: Kristian Koehler
>         Attachments: quartz.patch
>
>
> Hi
> running the quartz tests causes strange failures on my machine. Sometimes the tests fail...
> I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive. 
> On my machine it seems that this timeslot is (sometimes) not 'enough'.
> I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().  ;-)
> Kristian

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


[jira] Commented: (SM-1366) Strange threading problems running quartz component tests

Posted by "Kristian Köhler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44406#action_44406 ] 

Kristian Köhler commented on SM-1366:
-------------------------------------

ah sorry. will do it this week ;-)

Kristian


-- 
GASwerk - Geronimo Application Assemblies
http://gaswerk.sourceforge.net


> Strange threading problems running quartz component tests
> ---------------------------------------------------------
>
>                 Key: SM-1366
>                 URL: https://issues.apache.org/activemq/browse/SM-1366
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-quartz
>    Affects Versions: 3.2.2
>            Reporter: Kristian Koehler
>         Attachments: quartz.patch
>
>
> Hi
> running the quartz tests causes strange failures on my machine. Sometimes the tests fail...
> I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive. 
> On my machine it seems that this timeslot is (sometimes) not 'enough'.
> I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().  ;-)
> Kristian

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


[jira] Resolved: (SM-1366) Strange threading problems running quartz component tests

Posted by "Kristian Koehler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Koehler resolved SM-1366.
----------------------------------

    Resolution: Fixed

applied my patch. see
http://svn.apache.org/viewvc?view=rev&revision=678358

> Strange threading problems running quartz component tests
> ---------------------------------------------------------
>
>                 Key: SM-1366
>                 URL: https://issues.apache.org/activemq/browse/SM-1366
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-quartz
>    Affects Versions: 3.2.2
>            Reporter: Kristian Koehler
>            Assignee: Kristian Koehler
>         Attachments: quartz.patch
>
>
> Hi
> running the quartz tests causes strange failures on my machine. Sometimes the tests fail...
> I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive. 
> On my machine it seems that this timeslot is (sometimes) not 'enough'.
> I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().  ;-)
> Kristian

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