Taste profile: concurrent updates can overwrite each other's fields #213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Left out of scope in #211 (fix for #207).
TasteProfileServiceloads the profile row, changes some fields and saves the whole entity. Two concurrent transactions on an existing row (for example a recalculation triggered byTasteProfileInvalidatedEventandPUTof the preferred languages or excluded regions) each write every column, so the later commit can restore an old value of a field it did not mean to touch. No error is raised; the update is silently lost.Options
@Version) with a retry on the recalculation path.The second is simpler and removes the conflict rather than detecting it.