Uploaded image for project: 'mod-source-record-storage'
  1. mod-source-record-storage
  2. MODSOURCE-55

Partial batch save for records

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      EPAM BatchLoader Sprint 18
    • Story Points:
      5
    • Development Team:
      Folijet

      Description

      In current implementation for "batch save records" we use CompositeFuture#all to await for futures processing. If one of the dedicated futures fails, then CompositeFuture immediately returns failed async result and server returns 500 response.
      We need to change this behavior to follow "partial save" principle:

      • if all the Records are successfully saved - return 201,
      • if save for some Records throws an exception - method returns 500 status with error message for each Record that caused a failure(even if some Records were successfully saved).

      Use CompositeFuture#join.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Anatolii Starkov Anatolii Starkov
                Reporter:
                Igor_Gorchakov Igor Gorchakov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases