Elie Roux created JENA-1747:
-------------------------------
Summary: pass timeout to Lucene query
Key: JENA-1747
URL: https://issues.apache.org/jira/browse/JENA-1747
Project: Apache Jena
Issue Type: Improvement
Components: Fuseki
Affects Versions: Jena 3.12.0
Reporter: Elie Roux
The use case is to make sure that a query in Fuseki cannot take more than a
configured number of seconds. The case where the query doesn't use the text
extension seems to be handled, but the current code cannot stop a text query if
it takes longer than the timeout.
The call to Lucene fetches all the results in one call, which can result in the
set timeout not being respected. Lucene seems to expose ways to limit a query
time so it should be possible to limit a Lucene query to the remaining time
before timeout. This doesn't seem very straightforward to apply to the current
code though.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)