Stream subscription: existing scans stay subscribed forever
When starting to listen to Redis (DataNode.walk_new_events
or any of the others) you can ignore existing scans. Or at least their children. The scan's data stream is still subscribed too. However it is subscribed too from first_index
(i.e. a timestamp) and not from 0. This was done to avoid generating END_SCAN events for scans that don't generate NEW_NODE events (because the parent's children_list stream is subscribed too from first_index
). However this means that the existing scan data streams stay in the list of streams for XREAD.
Edited by Wout De Nolf