-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kv: use deadline as MaxTimestamp for bound staleness reads #69343
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
From #68969 (review).
We need to do some extra work in kv.Txn to respect the deadline when NegotiateAndSend is used. We'll just use the same max_timestamp_bound mechanism with some code in NegotiateAndSend like:
if txn.mu.deadline != nil {
ba.BoundedStaleness.MaxTimestampBound.Backward(*txn.mu.deadline)
}
I didn't see you create an issue, so opening this for tracking :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)