afs commented on issue #1966: URL: https://github.com/apache/jena/issues/1966#issuecomment-1646519269
I was thinking that an MRSW transaction would work as a migration path but it isn't as straight forward as that. The problem is that graphs have their own API to transactions which does have a distinction of "read" and "write" that can be mapper to "read lock" and "write lock". Lock promotion isn't supported by Jena's ReentrantReadWriteLock. `SimpleTransactionHandler` does not support transactions. For now, it is better to leave `Model.getLock` alone, just revise its javadoc. [StampedLock](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/StampedLock.html) introduced in Java8 which looks like it might help. -- 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]
