Description
Brian Marcey opened DATAREDIS-570 and commented
The Redis documentation states that "if a key expires while the application is down the expiry event will not be processed which may lead to secondary indexes containing still references to the expired object."
I would expect this behavior and have indeed seen it while testing my code.
However, I have also noticed that if I restart my application after the above scenario occurs,
CrudRepostitory.findAll() will return a null value for each of the orphaned Ids. I didn't expect that and I can work around it, but it would be nice if SDR could detect this condition and not even include them in the returned Iterable. Note that CrudRepository.count() also returns an incorrect value under this scenario.
I can include more information if the above is not clear. Thank you!
Affects: 1.7.4 (Hopper SR4)
6 votes, 8 watchers