Concept
Fencing token
A fencing token is a number that goes up every time a lock or lease is granted. Every write carries the token, and the storage refuses any write whose token is lower than the highest it has seen. That stops a holder that paused and woke up late from overwriting the work of whoever took over.
Where you'll see it
Related concepts
Sources: Martin Kleppmann: How to do distributed locking (2016) ↗ · Apache ZooKeeper: recipes (locks, leader election) ↗ · Apache ZooKeeper programmer's guide: zxid and version numbers ↗ · Report a problem
The definition is in our own words; the sources are those of the lesson Split brain & fencing tokens.