Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.5
-
None
-
None
Description
When GarbageCollector goes through nodes, it can encounter NoSuchItemStateException or PathNotFoundException if a node has been deleted or moved in the meantime. GarbageCollector can safely ignore these exceptions. It tries to do so in some cases but not all.
For example, Listener#onEvent method in GarbageCollector catches PathNotFoundException and it also catches the generic Exception. The latter is problematic because a NoSuchItemStateException can be thrown by Session#getItem call and currently, GarbageCollector treats that as a valid exception when it should just ignore it.