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

   ### Version
   
   5.3.0-SNAPSHOT
   
   ### What happened?
   
   The cancel signal in 
[QueryExecDataset](https://github.com/apache/jena/blob/510680cf290cc14d6edf594627c15f87569701b0/jena-arq/src/main/java/org/apache/jena/sparql/exec/QueryExecDataset.java#L482)
 is only placed into the context when a timeout is configured.
   
   However, in the case of manual invocations to `QueryExec.abort()` the cancel 
signal is not placed into the context. 
   This prevents functions to check the flag and possibly abort prematurely.
   
   A use case is the query which uses the GeoSPARQL property function, which 
creates a cross product between all geometries (inside the property function) 
and returns all overlapping ones. @LorenzBuehmann has been working on a revised 
version that respects the cancel flag, however he noted that the flag is only 
available when timeouts have been configured, making it impossible to cancel 
externally using `QueryExec.abort();`
   
   ```sparql
   PREFIX geo: <http://www.opengis.net/ont/geosparql#>
   SELECT * WHERE {
     ?x geo:sfIntersects ?y
   }
   ```
   
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   Yes


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