You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Meeraj Kunnumpurath <M....@voca.com> on 2006/07/24 19:11:36 UTC

RE: [jira] Created: (TUSCANY-573) Race condition in ThreadPoolWorkManager

Hi,

I have uncommented the ThreadPoolWorkManagerTestCase, however, I can't
reproduce the error. However, I have fixed the bit of code that I think
is causing the problem. Please find the patch attached. I would
appreciate if anyone who can consistently reproduce the error please
test this.

Ta
Meeraj 



-----Original Message-----
From: Jeremy Boynes (JIRA) [mailto:tuscany-dev@ws.apache.org] 
Sent: 24 July 2006 17:39
To: tuscany-dev@ws.apache.org
Subject: [jira] Created: (TUSCANY-573) Race condition in
ThreadPoolWorkManager

Race condition in ThreadPoolWorkManager
---------------------------------------

                 Key: TUSCANY-573
                 URL: http://issues.apache.org/jira/browse/TUSCANY-573
             Project: Tuscany
          Issue Type: Bug
            Reporter: Jeremy Boynes


Problems running testSchedule testcase on single processor machines.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira

        

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


This message has been checked for all email viruses by MessageLabs.




*****************************************************

    You can find us at www.voca.com

*****************************************************
This communication is confidential and intended for 
the exclusive use of the addressee only. You should 
not disclose its contents to any other person.
If you are not the intended recipient please notify 
the sender named above immediately.

Registered in England, No 1023742,
Registered Office: Voca Limited
Drake House, Three Rivers Court,
Homestead Road, Rickmansworth,
Hertfordshire, WD3 1FX


This message has been checked for all email viruses by MessageLabs.

Re: [jira] Created: (TUSCANY-573) Race condition in ThreadPoolWorkManager

Posted by Jeremy Boynes <jb...@apache.org>.
On Jul 24, 2006, at 10:34 AM, Jeremy Boynes wrote:

> Does this still fulfill the lifecycle contract? With this patch,  
> workAccepted is called on the worker thread and not until the work  
> is actually dispatched - I thought it would need to be called  
> before any scheduling delay.
>

The patch does seem to fix the problem but I'm not sure about  
committing it due to the above question ...
--
Jeremy


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


Re: [jira] Created: (TUSCANY-573) Race condition in ThreadPoolWorkManager

Posted by Jeremy Boynes <jb...@apache.org>.
Does this still fulfill the lifecycle contract? With this patch,  
workAccepted is called on the worker thread and not until the work is  
actually dispatched - I thought it would need to be called before any  
scheduling delay.

--
Jeremy

On Jul 24, 2006, at 10:11 AM, Meeraj Kunnumpurath wrote:

> Hi,
>
> I have uncommented the ThreadPoolWorkManagerTestCase, however, I can't
> reproduce the error. However, I have fixed the bit of code that I  
> think
> is causing the problem. Please find the patch attached. I would
> appreciate if anyone who can consistently reproduce the error please
> test this.
>
> Ta
> Meeraj
>
>
>
> -----Original Message-----
> From: Jeremy Boynes (JIRA) [mailto:tuscany-dev@ws.apache.org]
> Sent: 24 July 2006 17:39
> To: tuscany-dev@ws.apache.org
> Subject: [jira] Created: (TUSCANY-573) Race condition in
> ThreadPoolWorkManager
>
> Race condition in ThreadPoolWorkManager
> ---------------------------------------
>
>                  Key: TUSCANY-573
>                  URL: http://issues.apache.org/jira/browse/TUSCANY-573
>              Project: Tuscany
>           Issue Type: Bug
>             Reporter: Jeremy Boynes
>
>
> Problems running testSchedule testcase on single processor machines.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the  
> administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
> This message has been checked for all email viruses by MessageLabs.
>
>
>
>
> *****************************************************
>
>     You can find us at www.voca.com
>
> *****************************************************
> This communication is confidential and intended for
> the exclusive use of the addressee only. You should
> not disclose its contents to any other person.
> If you are not the intended recipient please notify
> the sender named above immediately.
>
> Registered in England, No 1023742,
> Registered Office: Voca Limited
> Drake House, Three Rivers Court,
> Homestead Road, Rickmansworth,
> Hertfordshire, WD3 1FX
>
>
> This message has been checked for all email viruses by MessageLabs.
> <patch.txt>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org


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