-
Sub-task
-
Resolution: Done
-
High
-
None
Description :
The legacy code was able to report individual (already exists) error when creating a batch of new cm handles
using batch save this functionality got compromised and need to be improved to handles such error again
possibly solution:
catch exception on batch save and resave the failed batch using individual save statement and then using the original error handling for each failure
--------------
Method Affected :
inventoryPersistence.saveCmHandleBatch(newCmHandles);
inventoryPersistence.saveCmHandleStateBatch(compositeStatePerCmHandleId);
- Catch Exception , Retry Batch Elements Individually and then which still fails , collect in the batch version of the exception.
- Rest Response while exception to be streamlined as before.
- Cm handle to be moved to LOCKED state when Module Sync fails.
Note : Rest Response just applies for registration. (as we dont expect any exception at REST layer)
- split to
-
CPS-1271 Handle Partial Failure when updating composite state
- Closed