Invalid usage of optimistic locking
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Attachments
3
blocks
defines
is cloned by
Checklist
hideTestRail: Results
Activity
Show:

Serhii_Nosko September 16, 2022 at 8:20 AM
All Karate tests have been passed that can be related with optimistic locking fixes, so we can close this ticket

Siarhei Hrabko September 13, 2022 at 6:49 PM
The fix was applied in scope of story
Done
Created September 13, 2022 at 6:48 PM
Updated April 19, 2024 at 3:43 PM
Resolved September 16, 2022 at 8:21 AM
TestRail: Cases
TestRail: Runs
Overview:
**
Due to invalid usage of RMB optimistic locking feature updating records which do not have specified "_version" filed causes error 409
Do not set version manualy!
For more deatails read RMB documentation and the code how OL trigger implemented
https://github.com/folio-org/raml-module-builder/blob/7b3abdf285628396f961905b5be7bca3b093c6e7/domain-models-runtime/src/main/resources/templates/db_scripts/optimistic_locking.ftl
https://github.com/folio-org/raml-module-builder#optimistic-locking
Expected Results:
All records affected by OL mechanism successfully updated
Actual Results:
transaction update failed with error 409