curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Jaton <benjamin.ja...@gmail.com>
Subject Curator PathChildrenCache sends delete events but no delete happened
Date Mon, 24 Oct 2016 23:04:56 GMT
Hello,

I am using PathChildrenCache and I am receiving delete events even if there
is no actual delete in ZK. I printed the WatchedEvent details for 2 of
those delete events (of the same node /benji2/123) I received in the same
JVM run:


2016-10-24 15:52:43 DEBUG o.a.z.ClientCnxn:889 - Got WatchedEvent
state:SyncConnected type:NodeDeleted path:/benji2/123 for sessionid
0x20014cf3d480003
[PathChildrenCacheListener] delete event for /benji2/123
PathChildrenCacheEvent{type=CHILD_REMOVED,
data=ChildData{path='/benji2/123',
stat=19808389169191,19808389169191,1477335789916,1477335789916,0,0,0,0,0,0,19808389169191
, data=[]}}
null
ChildData{path='/benji2/123',
stat=19808389169191,19808389169191,1477335789916,1477335789916,0,0,0,0,0,0,19808389169191
, data=[]}
getAversion=0
2016-10-24 15:52:43 DEBUG o.a.z.ClientCnxn:867 - Got notification
sessionid:0x20014cf3d480003
getCtime=1477335789916
getCversion=0
getCzxid=19808389169191
getMtime=1477335789916
2016-10-24 15:52:43 DEBUG o.a.z.ClientCnxn:889 - Got WatchedEvent
state:SyncConnected type:NodeDeleted path:/benji2 for sessionid
0x20014cf3d480003
getMzxid=19808389169191
getPzxid=19808389169191
getVersion=0

(...)

2016-10-24 15:58:06 DEBUG o.a.z.ClientCnxn:889 - Got WatchedEvent
state:SyncConnected type:NodeDeleted path:/benji2/123 for sessionid
0x20014cf3d480003
[PathChildrenCacheListener] delete event for /benji2/123
PathChildrenCacheEvent{type=CHILD_REMOVED,
data=ChildData{path='/benji2/123',
stat=19808389169191,19808389169191,1477335789916,1477335789916,0,0,0,0,0,0,19808389169191
, data=[]}}
null
2016-10-24 15:58:06 DEBUG o.a.z.ClientCnxn:867 - Got notification
sessionid:0x20014cf3d480003
ChildData{path='/benji2/123',
stat=19808389169191,19808389169191,1477335789916,1477335789916,0,0,0,0,0,0,19808389169191
, data=[]}
getAversion=0
getCtime=1477335789916
getCversion=0
getCzxid=19808389169191
getMtime=1477335789916
getMzxid=19808389169191
getPzxid=19808389169191
getVersion=0


Are there known edge cases where this can happen? Again there is no delete
at all in ZK, I verified the transaction log of ZooKeeper, no delete is
present).

Thanks,
Benjamin

Mime
View raw message