[ https://issues.apache.org/jira/browse/JENA-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15052805#comment-15052805 ]
ASF GitHub Bot commented on JENA-1078: -------------------------------------- Github user afs commented on the pull request: https://github.com/apache/jena/pull/105#issuecomment-163944788 We have had the discussion about warnings again on the dev@ just recently. I've already started on a review and some fixes. There are some other problems with abort/end. I will submit a PR here for detailed code review. The issues look harmless but that's because of the way the implementation of indexes happen to work. Different plugged in indexes would not be so safe. > TxnMem does not log a warning when commit() omitted. > ---------------------------------------------------- > > Key: JENA-1078 > URL: https://issues.apache.org/jira/browse/JENA-1078 > Project: Apache Jena > Issue Type: Bug > Affects Versions: Jena 3.0.1 > Reporter: Andy Seaborne > Assignee: A. Soroka > Fix For: Jena 3.1.0 > > > Example: > {noformat} > Dataset ds = DatasetFactory.createTxnMem() ; > //Dataset ds = TDBFactory.createDataset() ; > ds.begin(ReadWrite.WRITE) ; > //ds.commit(); > ds.end() ; > {noformat} > whereas a read transaction can be: > {noformat} > Dataset ds = DatasetFactory.createTxnMem() ; > ds.begin(ReadWrite.READ) ; > ds.end() ; > {noformat} > See javadoc for {{org.apache.jena.sparql.core.Transactional}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)