Test soft timeout ( limiting fetching ) on Elasticsearch

Description

Hard timeout is implemented by us client side.
Soft timeout is implemented too, but currently not tested because:

Timeout resolution is very low, so it's uneffective unless the query takes a really long time to execute.

We should find a way to test it regardless, for example by configuring Elasticsearch to use a higher time resolution (is it even possible?), or by crafting a query that we know will take forever to execute (how?).

See full discussion here: https://github.com/hibernate/hibernate-search/pull/2158#commitcomment-36306546

See org.hibernate.search.integrationtest.backend.elasticsearch.testsupport.util.ElasticsearchTckBackendFeatures#fastTimeoutResolution.

Activity

Show:
Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Created December 9, 2019 at 4:09 PM
Updated October 8, 2020 at 12:30 PM
Resolved October 5, 2020 at 9:21 AM

Flag notifications