You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Alessandro Adamou (JIRA)" <ji...@apache.org> on 2015/06/18 19:15:00 UTC
[jira] [Resolved] (STANBOL-1428) Import resolution is not
thread-safe
[ https://issues.apache.org/jira/browse/STANBOL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Adamou resolved STANBOL-1428.
----------------------------------------
Resolution: Fixed
> Import resolution is not thread-safe
> ------------------------------------
>
> Key: STANBOL-1428
> URL: https://issues.apache.org/jira/browse/STANBOL-1428
> Project: Stanbol
> Issue Type: Bug
> Components: Ontology Manager
> Affects Versions: 1.0.0
> Environment: cross-platform
> Reporter: Alessandro Adamou
> Assignee: Alessandro Adamou
> Priority: Critical
> Labels: concurrency, thread-safety
>
> When loading an ontology with imports, the ClerezzaOntologyProvider keeps triple iterators running on the target graph for longer than required. Since Clerezza introduced Lockable the MGraph, this thread-unsafety has resulted in concurrent exceptions being thrown.
> The solution is now to
> * minimize the lifetime of iterators (do not keep them open during import resolution)
> * use mutex locks as documented in https://clerezza.apache.org/faq/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)