Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: log if lease applies with a delay
When we transfer a lease to a lagging follower, there's often a latency blip that we get asked to investigate. This is time consuming; it's often very subtle to even figure out that it happened. We try to be better about not doing it, but at least on 22.1 we know it's possible, and we can't backport the rather involved fixes. This warning makes it fairly obvious when it happens. > W230131 [...] [T1,n2,s2,r23/3:‹/Table/2{1-2}›,raft] 165 lease repl=(n2,s2):3 seq=5 start=1675153630.108829000,0 epo=3 pro=1675153630.108829000,0 active after replication lag of ~0.58s; foreground traffic may have been impacted [prev=repl=(n3,s3):2 seq=4 start=1675153407.528408000,0 epo=2 pro=1675153419.837642000,0] Also log if we're acquiring an epoch-based lease following a non-cooperatively expired expiration-based lease, which would suggest that a lease transfer went to a node that couldn't service the lease. This would likely have caused an outage, and the log message will provide a way to pinpoint its end timestamp Addresses #95991. Epic: none Release note: None
- Loading branch information