[ 
https://issues.apache.org/jira/browse/JENA-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053388#comment-15053388
 ] 

ASF GitHub Bot commented on JENA-1085:
--------------------------------------

Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/107#discussion_r47392305
  
    --- Diff: 
jena-arq/src/main/java/org/apache/jena/sparql/core/mem/DatasetGraphInMemory.java
 ---
    @@ -166,16 +179,31 @@ public void close() {
         @Override
         public void end() {
             if (isInTransaction()) {
    -            if (transactionType().equals(WRITE))
    -                log.warn("end() called for WRITE transaction without 
commit or abort having been called");
    +            if (transactionType().equals(WRITE)) {
    +                log.warn("end() called for WRITE transaction without 
commit or abort having been called causing a forced abort");
    +                _abort() ;
    +            }
    +            finishTransaction();
    +            return ;
    --- End diff --
    
    Why an "naked" `return` here?


> Review trasnaction finishes for DatasetGraphInMemory
> ----------------------------------------------------
>
>                 Key: JENA-1085
>                 URL: https://issues.apache.org/jira/browse/JENA-1085
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>    Affects Versions: Jena 3.0.1
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>             Fix For: Jena 3.1.0
>
>
> This JIRA is for a review of the transaction finishing code.
> Some of the code works because of the nature of specific implementations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to