neo4j/community — pull request #579 by digitalstain (2012-06-01 10:36:04+00:00)
Title: Test case and fix for possible infinite recursion on log rotation

Adds a guard to save against rotating during a rotation - in this case we opt for larger file size rather than failing with StackOverflowError.

The only way for this to realistically happen is for the triggers to log more than the default 100M, which is near impossible (or the filesystem to report wrong file sizes). However the exact same stack trace produced by the test case (without the fix) has been encountered in a production cluster, so it still makes sense to include.