Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1126 CmHandle creation performance degradation
  3. CPS-1232

Handle partial failure when saving batches (cm handle create)

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: High High
    • Kohn Release
    • None
    • NCMP

       

      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)

            mpriyank Priyank Maheshwari
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: