Netflix/curator — Issue #27: PathChildrenCache anomalies
Author: laboo
Created: 2012-02-09 00:29:11+00:00
State: open

Seeing some unexpected behaviors with the PathChildrenCache recipe in both CACHE_DATA and CACHE_DATA_AND_STAT modes.

1. When a child is deleted or created, the expected event is triggered in the listeners, but there are also extra CHILD_UPDATED events for all the other children as well.

2. When a child is updated with the same data it had before a CHILD_UPDATED event is triggered. This sounds right for CACHE_DATA_AND_STAT mode (since the Stat object is changing), but not for CACHE_DATA mode? Not sure.

3. When start() is called, there is CHILD_UPDATED event triggered for each (already existing) child. Was not expecting this, but I can see how this makes sense.