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:[EMAIL PROTECTED] 
Sent: 24 July 2006 17:39
To: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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.
Index: ThreadPoolWorkManager.java
===================================================================
--- ThreadPoolWorkManager.java  (revision 425093)
+++ ThreadPoolWorkManager.java  (working copy)
@@ -83,7 +83,6 @@
             if (workListener != null) {
                 workItems.put(workItem, workListener);
             }
-            workAccepted(workItem, work);
             return workItem;
         } else {
             workItem.setStatus(WorkEvent.WORK_REJECTED);
@@ -198,6 +197,7 @@
          * Overrides the run method.
          */
         public void run() {
+            workAccepted(workItem, decoratedWork);
             workStarted(workItem, decoratedWork);
             try {
                 decoratedWork.run();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to