Skip to content

kv: use deadline as MaxTimestamp for bound staleness reads #69343

@otan

Description

@otan

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 :)

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions