You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Fabian Christ (JIRA)" <ji...@apache.org> on 2012/12/12 16:21:22 UTC
[jira] [Updated] (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:all-tabpanel ]
Fabian Christ updated STANBOL-779:
----------------------------------
Component/s: Enhancer
> 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
> Components: Enhancer
> 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