Reindexation doesn't work in 2.4.4, unless the "development mode" is activated
Description
How we noticed
According to the screenshot of a customer, the reindexation seems to timeout. It could be an error that we haven't seen in dev-mode but which appeared when the flag was off, let's check what happens when we remove this flag.
Root cause
We've added a check to ensure a class used at development time wasn't used. Unfortunately, we didn't notice that we've added the check for a method which was expected to be called in either case (production or development). Therefore it threw an exception in production.
Why we didn't notice
To run our tests, we keep the "development mode" flag activated because the test rig inserts data through the development mode API.
Environment
None
Observations
None