You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Hasan (JIRA)" <ji...@apache.org> on 2011/05/26 15:17:47 UTC

[jira] [Created] (CLEREZZA-556) Missing lock at org.apache.clerezza.rdf.web.core.WebAccess.getTriples()

Missing lock at org.apache.clerezza.rdf.web.core.WebAccess.getTriples()
-----------------------------------------------------------------------

                 Key: CLEREZZA-556
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-556
             Project: Clerezza
          Issue Type: Bug
            Reporter: Hasan


The resulting TripleCollection from the invocation of TcManager.getTriples(name)
must be locked before reading if it is lockable.
However, it is possible that the resulting TripleCollection is a WriteBlockedTripleCollection which might wrap a LockableMGraph
Unfortunately, WriteBlockedTripleCollection does not perform locking by itself and does not provide any means to lock the wrapped graph. This is an issue of its own.

As a temporary solution to this issue here, I suggest to not use TcManager.getTriples, but to use the combination of getMGraph and getGraph


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira