New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Redis key present in cache even after deleted by first thread and reading around same point of time by other thread. #13232
Comments
"around same point of time" is vague, and doesn't give enough information to know whether the server is doing anything incorrect here. Delays and overtakes are possible at pretty much every point unless you are talking about two messages on the same connection being processed out of order, so for close events: it becomes very hard to say which cam first - the GET or the DEL/UNLINK, i.e. what evidence do you have for the "after" in the sentence "after deleted by first thread"? |
"around the same point" means first thread deleted the key then after few mill/microseconds second thread check key existence. The evidence for "after" based on retrieving remaining time to live for key as NULL after deleted by first thread even key having enough remaining time to live before deleting the key. |
Looking forward for fixes of issue, is any progress? |
@ParasGH did you confirm that the messages of the two threads are delivered in the order you expect? |
When one thread deleted the cached key and around same point of time another thread doing following task Redis responded incorrectly:
Retrieving remaining time to live response is null.
Checking whether key exist or not: key present in cache even after deleted by first thread.
Checking value of key: value present in cache even after deleted by first thread.
To reproduce
Delete the key by a thread.
With other thread at same time check key exist or not after deleted by first thread.
Result: Key exists
Expected behavior
Key should not exist after deleted.
The text was updated successfully, but these errors were encountered: