[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.

Reply via email to