[
https://issues.apache.org/jira/browse/DIRMINA-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny closed DIRMINA-352.
-------------------------------------
> races in ExecutorFilter
> -----------------------
>
> Key: DIRMINA-352
> URL: https://issues.apache.org/jira/browse/DIRMINA-352
> Project: MINA
> Issue Type: Bug
> Components: Filter
> Affects Versions: 1.1.0
> Environment: any
> Reporter: Jacek Gerbszt
> Assignee: Trustin Lee
> Attachments: executorfilter.diff
>
>
> You've got thread races in ExecutorFilter class. When the thread running
> ProcessEventRunnable is hanging up between polling the event and updating the
> processingCompleted flag, another thread has the chance to add new event and
> evaluate processingCompleted.compareAndSet() method in meantime. Now
> ProcessEventRunnable thread updates the flag and breaks the loop, but it's
> too late - no new task is scheduled. Added event stays n the queue waiting
> for the next event or timeout.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.