|
As I suspected, the issue is somewhere in the internals of Hibernate Core.
The FullTextQueryImpl uses the ObjectLoaderBuilder to build a QueryLoader where the method executeLoad(EntityInfo... entityInfo() is called.
From here, the 250 objects are loaded using the CriteriaObjectsInitializer instance which calls criteria.list();. This is the point where the log entries I gave at the start of this issue are streamed.
Inside org.hibernate.loader.Loader the method processResultSet is called where it iterates the records. This is where the following is streamed to the logs:
Result set row: <row number>
Inside the loop, the method getRowFromResultSet is invoked. This method does a few method calls and then calls getRow which where where the following is streamed to the logs:
Somewhere inside the Loader class between these two debug output lines is where the hang occurs and unfortunately I'm not sure I can go any farther on trying to diagnose why the iteration of the resultset hangs.
|