rvesse opened a new issue, #2086:
URL: https://github.com/apache/jena/issues/2086

   ### Version
   
   4.10.0
   
   ### What happened?
   
   A `GraphTxn.find()` call will fail if the `GraphTxn` is already in a 
transaction, PR #1964 made changes to address #1961 which attempted to make 
`GraphTxn.find()` behaviour transactionally consistent and thread-safe.
   
   However the check at 
https://github.com/apache/jena/blob/jena-4.10.0/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java#L118
 was not inverted as it should be, so rather than only creating a transaction 
when one did not exist it instead did the opposite.  This has already been 
fixed on `main` - 
https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/sparql/graph/GraphTxn.java#L118
   
   Ideally a fix needs to be back ported to `jena4` branch and a point release 
created to address this as otherwise `GraphTxn.find()` is broken for 4.10.0
   
   
![gh-1964-stacktrace](https://github.com/apache/jena/assets/2104864/fad717ab-01ed-4a2e-9f75-6a8a9018a8d6)
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   None


-- 
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