Apply query timeout when there is no row selection

Description

It seems that timeout isn't taken in account if there is no row selection.
See the method HQLQueryPlan#performList.

Here is an extract:

The problem is when rowSelection is not null and the timeout has been set. Then rowSelection.definesLimits() completely ignores the timeout, and if we don't have a LIMIT/OFFSET, then it returns false and the timeout will not be applied.

Environment

None

Assignee

Unassigned

Reporter

Fabio Massimo Ercoli

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure