You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2012/10/16 10:53:03 UTC
[jira] [Commented] (STANBOL-779) EventJobManager may deadlock in
case the enhancement job is finished before the calling thread waits
[ https://issues.apache.org/jira/browse/STANBOL-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476858#comment-13476858 ]
Rupert Westenthaler commented on STANBOL-779:
---------------------------------------------
Revision 1398696 [1] provides a fix for this issue. Will keep this open until further testing in the environment that initially triggered this.
[1] http://svn.apache.org/viewvc?rev=1398696&view=rev
> EventJobManager may deadlock in case the enhancement job is finished before the calling thread waits
> ----------------------------------------------------------------------------------------------------
>
> Key: STANBOL-779
> URL: https://issues.apache.org/jira/browse/STANBOL-779
> Project: Stanbol
> Issue Type: Bug
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
>
> Here is the logging of an EnhancementJob that was finished in 11ms - short enough that the notifyAll() was sent before the calling thread was able to wait()
> 15.10.2012 22:59:50.693 *INFO* [Enhancement Worker (who,id=2)] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler Add EnhancementJob:
> 15.10.2012 22:59:50.693 *INFO* [Enhancement Worker (who,id=2)] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler state: processing
> 15.10.2012 22:59:50.693 *INFO* [Enhancement Worker (who,id=2)] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler chain: who_regions
> 15.10.2012 22:59:50.693 *INFO* [Enhancement Worker (who,id=2)] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler content-item: <http://www.kiwi-community.eu/WHO/enhancement/sha1-b1c7561c91af2072ed99c9a4edccca50c1a41513>
> 15.10.2012 22:59:50.699 *INFO* [Thread-157] org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine language identified: [en:0.9999961003315406]
> 15.10.2012 22:59:50.704 *INFO* [Thread-145] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler Finished EnhancementJob:
> 15.10.2012 22:59:50.704 *INFO* [Thread-145] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler state: finished
> 15.10.2012 22:59:50.704 *INFO* [Thread-145] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler chain: who_regions
> 15.10.2012 22:59:50.704 *INFO* [Thread-145] org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler content-item: <http://www.kiwi-community.eu/WHO/enhancement/sha1-b1c7561c91af2072ed99c9a4edccca50c1a41513>
> In those cases the calling thread will miss the expected notify and wait forever.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira