Skip to content
RED SAGSkills
hard20 pts · first answer countsdatabasesdistributed-locksconcurrency

Two workers both think they hold the lock

Worker A takes a Redis lock with a 10-second TTL, then pauses for 15 seconds in garbage collection. Worker B takes the lock. A wakes and writes to storage. What prevents A's stale write?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions