You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org> on 2007/01/29 17:23:49 UTC
[jira] Created: (QPID-327) [race condition] PoolingFilter :
Possible race condition when completing a Job
[race condition] PoolingFilter : Possible race condition when completing a Job
------------------------------------------------------------------------------
Key: QPID-327
URL: https://issues.apache.org/jira/browse/QPID-327
Project: Qpid
Issue Type: Bug
Components: Java Common
Reporter: Rob Godfrey
In the following code:
//Job.JobCompletionHandler
public void completed(IoSession session, Job job)
{
if (job.isComplete())
{
job.release();
if (!job.isReferenced())
{
_jobs.remove(session);
}
}
Another thread could acquire() the job between the call to job.isReferenced() and _jobs.remove(session);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-327) [race condition] PoolingFilter :
Possible race condition when completing a Job
Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey updated QPID-327:
-----------------------------
Attachment: QPID-327.patch
> [race condition] PoolingFilter : Possible race condition when completing a Job
> ------------------------------------------------------------------------------
>
> Key: QPID-327
> URL: https://issues.apache.org/jira/browse/QPID-327
> Project: Qpid
> Issue Type: Bug
> Components: Java Common
> Reporter: Rob Godfrey
> Attachments: QPID-327.patch
>
>
> In the following code:
> //Job.JobCompletionHandler
> public void completed(IoSession session, Job job)
> {
> if (job.isComplete())
> {
> job.release();
> if (!job.isReferenced())
> {
> _jobs.remove(session);
> }
> }
>
> Another thread could acquire() the job between the call to job.isReferenced() and _jobs.remove(session);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (QPID-327) [race condition] PoolingFilter :
Possible race condition when completing a Job
Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey reassigned QPID-327:
--------------------------------
Assignee: Rob Godfrey
> [race condition] PoolingFilter : Possible race condition when completing a Job
> ------------------------------------------------------------------------------
>
> Key: QPID-327
> URL: https://issues.apache.org/jira/browse/QPID-327
> Project: Qpid
> Issue Type: Bug
> Components: Java Common
> Reporter: Rob Godfrey
> Assigned To: Rob Godfrey
> Attachments: QPID-327.patch
>
>
> In the following code:
> //Job.JobCompletionHandler
> public void completed(IoSession session, Job job)
> {
> if (job.isComplete())
> {
> job.release();
> if (!job.isReferenced())
> {
> _jobs.remove(session);
> }
> }
>
> Another thread could acquire() the job between the call to job.isReferenced() and _jobs.remove(session);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.