Re:Is Redlock Safe? Reply to Redlock Analysis
by carllerche on Tuesday February 09, 2016 @02:03PM
(#11067787)
Replying here since I can't reply to your deeper comment.
A client can never know with certainty that it has successfully acquired the lock because, for example, the process could freeze between reading the current time from hardware and the steady_time function returning.
You can not rely on time, for safety. Only for advice.
Re:Is Redlock Safe? Reply to Redlock Analysis
by dvirsky on Tuesday February 09, 2016 @02:12PM
(#11067860)
yes, that goes back to the first issue in Martin's article, and he mentioned the tokens thing for this. But time drift between the machines is not an issue, is my point.
A client can never know with certainty that it has successfully acquired the lock because, for example, the process could freeze between reading the current time from hardware and the steady_time function returning.
You can not rely on time, for safety. Only for advice.