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

Partial batch update for parsed records

    XMLWordPrintable

    Details

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

      Description

      In current implementation for "batch update 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 update" principle:

      • rename endpoint to source-storage/parsedRecords/batch
      • if all the Records are successfully updated - server returns 201,
      • if update for some Records throws exception - method updates ErrorRecord(state = 'ERROR') for each Record that causes an error. Then server returns 500 response with error messages for all the failure Records(even if some Records were successfully updated).

      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:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases