-
1. Re: Reusable executions are being created everytime
shawkins Feb 14, 2013 2:32 PM (in response to sanjeev.gour)Sanjeev,
As long as the execution is being closed it is eligible for reuse. So that would be the place to start to see if close is not being called for some reason.
Steve
-
2. Re: Reusable executions are being created everytime
sanjeev.gour Feb 15, 2013 7:35 AM (in response to shawkins)We did a test with a simple ReusableExecution and found that new executions are being created everytime DataNotAvailableExecption is thrown. Here is the life cycle after the recent patch for issue mentioned in this conversation was applied-
TimerExecution.TimerExecution()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:41:03.421
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.TimerExecution()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:41:03.556
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.TimerExecution()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:41:03.661
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.TimerExecution()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:41:03.766
TimerExecution.reset()
TimerExecution.execute() WAIT
The same test when run against the jar before the fix was applied is this-
TimerExecution.TimerExecution()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:49:01.998
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.reset()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:49:02.123
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.reset()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:49:02.228
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.reset()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:49:02.333
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.reset()
TimerExecution.execute() RESULT
TimerExecution.close()
On Row 2013-02-15 17:49:02.438
TimerExecution.reset()
TimerExecution.execute() WAIT
TimerExecution.reset()
We created a JIRA ticket for this and attached the testcase to reproduce it.
-
3. Re: Reusable executions are being created everytime
shawkins Feb 15, 2013 8:18 AM (in response to sanjeev.gour)I rejected the issue as I believe that your patch was applied incorrectly. Please retry your scenario against latest.
Steve
-
4. Re: Reusable executions are being created everytime
sanjeev.gour Feb 15, 2013 8:38 AM (in response to shawkins)Thanks Steve, we will try that.