BatchExecutor sometimes forgets to schedule the processor since HSEARCH-3084

Description

The problem occurs randomly, but fairly frequently; see for example https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search/detail/master/464/pipeline/85

It seems related to how we schedule the next runnable in the executor.

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

Blocker
Configure