Any txn.Op with non-existing Id and Assert set returns ErrAborted instead of ErrNotFound
Bug #1403846 reported by
Dimiter Naydenov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mgo |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Consider the following txn.Op{
Id: "not-existing",
Assert: D{{"life", "alive"}},
Update: ... # unimportant
}
If you try to run a transaction with this Op, instead of the expected mgo.ErrNotFound, txn.ErrAborted is returned, which is slightly surprising.
To post a comment you must log in.
Related juju-core bug #1403738