afs commented on issue #1846:
URL: https://github.com/apache/jena/issues/1846#issuecomment-1512553766

   Look at `DatasetGraphTDB.close()`. Datastructures have a close operation 
that cascades down the close, not that it matters. Databases do not follow the 
file paradigm of open-action-close. That's a transaction on the database.
   
   In TDB2, close is a no-op. Datasets are only closed in unusual conditions, 
not in normal use.
   There is one database object per process that coordinates all access and it 
remains for the lifetime of the JVM.
   
   Because of concurrent access and transactions, it is not reliable to 
synchronously close a database. There is code to eject a database from the 
process but as it's javadocs says "use with care"  which means tests mainly.
   
   > This could potentially lead to memory leaks and other issues.
   
   Have you seen any leaks? What other issues?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to