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

Reply via email to