-
-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Description
OrientDB Version: 2.2
Steps to reproduce
- Create class "C" with field "f" and create a unique index for that field.
- Create a record of class "C" with a field "f" value equals to "v1" and store it.
- Load record created at step 1, set record version to -1 and update value of field "f" to "v2" and store it.
- Create a record of class "C" with a field "f" value equals to "v2" and store it.
Expected behavior
The exception that indicates that uniqueness constraints are violated should be thrown.
Actual behavior
The record is inserted in the database, and uniqueness constraint is violated.
Despite feeling that this case is super rare, some of the third-party drivers for remote storage incorrectly send -1 as record version. As a result, we have duplicates in the database. In general uniqueness constraints should be bullet proof and should not be violated in such simple way.
Metadata
Metadata
Assignees
Labels
buglegacy not used anymorelegacy not used anymore