Queries on multiple classes returning a single result generates wrong statistics

Description

In this particular case (single result, multiple classes), when one calls org.hibernate.search.query.hibernate.impl.AbstractLoader.load(List<EntityInfo>), it calls org.hibernate.search.query.hibernate.impl.MultiClassesQueryLoader.executeLoad(List<EntityInfo>) which in turn calls org.hibernate.search.query.hibernate.impl.AbstractLoader.load(EntityInfo).

Problem: both load methods increment statistics, so we end up incrementing the object loading stats by 2 instead of 1.

Test case and fix coming.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major