News for hackers. Stuff that matters.
Re:Ways to shoot yourself in the foot with Redis by 8organicbits on Saturday July 29, 2023 @10:44PM (#36927306)
I think we both agree that A did something wrong and that B followed the locking algorithm correctly. "Falsely" refers to a matter of fact: A is not dead.

You're right that A could try to stop, but I think it's more complicated than that. A is calling a third party API, which may not have a way to cancel an in-flight request. If A can't cancel, then A should refresh its claim on the lock. A must have done neither in the example.

There are no comments on this comment yet.