Use monotonic clock to ensure TSO safty #1661
Labels
status/discussion-wanted
The issue needs to be discussed.
type/enhancement
The issue or PR belongs to an enhancement.
During leader election, the TSO could be corrupted if the notify message of keep alive channel is not received in time. On this situation, old leader and new leader can serve timestamps at the same time.
Possible fix: Store lease expire time (in monotonic_raw fashion) and check lease for every received GetTS requests.
The text was updated successfully, but these errors were encountered: