[Bug]: check_intervals
will not validate correctly in certain nested txn scenarios
#410
Closed
1 task done
Labels
bug
Something isn't working
Description about the bug
In the current implementation of
check_intervals
in txn request validation, it may not validate the request correctly.Consider the following senerio(assume all requests are in the success branch): If a txn
S
contains two sub txnA
andB
.A
contains aput
,B
contains adelete
, and theput
overlaps with thedelete
. ThenS[A(put), B(del)]
will return a ok butS[B(del), A(put)
will return an error.The reason this inconsistency exist is that the sub txn requests are checked in a specific order, and append the deletes from sub txn to
dels
in this order. Theput
checksdels
for overlapping. So if theput
is checked before thedelete
, it will not know that thedelete
is overlap with itself.Version
0.1.0
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: