Is this issue limited to version 5.4.5, i.e. has it been resolved in a later release up to 5.4.9? I've looked in direct release notes and can't see anything mentioning this issue directly, but I do note that that affected versions in this Jira show 5.4.5 only.
Problem
JoinProcessor.doFindAllNodes
fails with aStackOverflowError
if you have a query likeFROM Foo WHERE id IN :ids
with lots of IDs as parameter.Suggested solution:
Change the sibling processing from recursive to iterative: