Sebastian Schaffert created MARMOTTA-48:
-------------------------------------------
Summary: KiWi Triplestore: when requesting value factory through a
connection, repository should return a value factory using the same connection
Key: MARMOTTA-48
URL: https://issues.apache.org/jira/browse/MARMOTTA-48
Project: Marmotta
Issue Type: Bug
Reporter: Sebastian Schaffert
Priority: Minor
In the default Sesame SailRepositoryConnection, the getValueFactory() method
returns the value factory of the SailRepository. In KiWi this is a bit
problematic, because the value factory needs a database connection for loading
nodes when needed. When someone uses the getValueFactory() method, this means
that there will be two database connections open, which can be a problem for
several reasons:
- transaction isolation (database): nodes created in the one connection are not
yet available in the other
- connection leakage: the value factory connection managed by the KiWiStore
will only be closed on shutdown(); if someone forgets a proper shutdown, this
can result in connection leakage
The solution would be to implement a custom version of SailRepository and
SailRepositoryConnection which directs the getValueFactory() to the value
factory of the SailConnection.
--
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