[CONTROLLER-762] Applications that use the MD-SAL Datastore should properly handle OptimisticLock and ConflictingModification exceptions Created: 04/Sep/14 Updated: 19/Oct/17 Resolved: 27/Oct/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Moiz Raja | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Many applications that use the MD-SAL Datastore do not properly handle commit failures that may happen due to conflicting modifications or optimistic lock exceptions. Many applications were written pre-hydrogen when these exceptions did not exist. These applications need to be modified to ensure one of two things, a. Minimizing the occurrences of conflicts by using some of the new APIs in the datstore. b. Properly handling any exceptions that happen to ensure that data is not lost. Here are some initial thoughts from Ed, 1) Mitigation Strategies (reduce incidence): 2) In spite of Mitigation, you still need to handle it so: |
| Comments |
| Comment by Alexander Fan [ 24/Sep/14 ] |
| Comment by Alexander Fan [ 24/Sep/14 ] |
|
Sorry, undoing my comment – was in the wrong bug. |
| Comment by Tony Tkacik [ 27/Oct/14 ] |
|
THis bug should be opened for particular projects, who offends API contracts. |