You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue exists since 0.46.0.
I have the following code to invoke the query
v_client = Vespa(settings.endpoint, cert=settings.vespa_cert_file)
async with v_client.asyncio(total_timeout=300) as async_client:
req['timeout'] = '300s',
resp = await async_client.query(body=req)
When the query runs for longer than 10sec it fails with the following error: RetryError[<Future at 0x1b1c93b70a0 state=finished raised ReadTimeout>
To reproduce the issue, try to use the following searcher:
@After(MinimalQueryInserter.EXTERNAL_YQL)
public class SleepSearcher extends Searcher {
@Override
public Result search(Query query, Execution execution) {
Result result = execution.search(query);
Integer timeToSleep = getValue(query);
if (timeToSleep != null) {
try {
TimeUnit.SECONDS.sleep(timeToSleep);
} catch (InterruptedException e) {
return result;
}
}
return result;
}
private Integer getValue(Query query) {
try {
return Integer.parseInt(query.properties().getString(new CompoundName("sleep")));
} catch (NullPointerException | NumberFormatException e) {
return null;
}
}
}
Then, pass req['sleep'] = '20'.
The text was updated successfully, but these errors were encountered:
The issue exists since 0.46.0.
I have the following code to invoke the query
When the query runs for longer than 10sec it fails with the following error:
RetryError[<Future at 0x1b1c93b70a0 state=finished raised ReadTimeout>
To reproduce the issue, try to use the following searcher:
Then, pass
req['sleep'] = '20'
.The text was updated successfully, but these errors were encountered: