Skip to content

Commit

Permalink
storage: test combined failOnMoreRecent and uncertainty error
Browse files Browse the repository at this point in the history
Epic: none
Release note: None
  • Loading branch information
tbg authored and cthumuluru-crdb committed Oct 1, 2024
1 parent e57825b commit 407b7ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/storage/testdata/mvcc_histories/range_tombstone_scans
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,18 @@ scan k=b end=d ts=3 globalUncertaintyLimit=4
scan: "b"-"d" -> <no data>
error: (*kvpb.ReadWithinUncertaintyIntervalError:) ReadWithinUncertaintyIntervalError: read at time 3.000000000,0 encountered previous write with future timestamp 4.000000000,0 within uncertainty interval `t <= (local=0,0, global=0,0)`; observed timestamps: []

run error
scan k=b end=d ts=3 globalUncertaintyLimit=4 failOnMoreRecent
----
scan: "b"-"d" -> <no data>
error: (*kvpb.ReadWithinUncertaintyIntervalError:) ReadWithinUncertaintyIntervalError: read at time 3.000000000,0 encountered previous write with future timestamp 4.000000000,0 within uncertainty interval `t <= (local=0,0, global=0,0)`; observed timestamps: []

run error
get k=c ts=3 globalUncertaintyLimit=4 failOnMoreRecent
----
get: "c" -> <no data>
error: (*kvpb.ReadWithinUncertaintyIntervalError:) ReadWithinUncertaintyIntervalError: read at time 3.000000000,0 encountered previous write with future timestamp 4.000000000,0 within uncertainty interval `t <= (local=0,0, global=0,0)`; observed timestamps: []

run ok
scan k=b end=d ts=4 globalUncertaintyLimit=5
----
Expand Down

0 comments on commit 407b7ee

Please sign in to comment.