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 18:42:00 UTC

[jira] [Created] (STANBOL-1428) Import resolution is not thtead-safe

Alessandro Adamou created STANBOL-1428:
------------------------------------------

             Summary: Import resolution is not thtead-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


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)