Uploaded image for project: 'mod-remote-storage'
  1. mod-remote-storage
  2. MODRS-93

Issues related to optimistic locking while PUT executed for inventory/items/ endpoint

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      Firebird Sprint 124
    • Story Points:
      2
    • Development Team:
      Firebird
    • Release:
      R3 2021

      Description

      Overview:

      Optimistic locking issues exist for mod remote storage module at logs while PUT executed for inventory/items/ endpoint. The issues exist at folio testing environment after api karate test running for caiasoft module. The issues started observable according api karate tests reports (https://jenkins-aws.indexdata.com/job/FOLIO_Reference_Builds/job/folio-api-tests-karate) from 29 of September 2021.

       Expected Results:

      Optimistic locking issues do not exist.

      Actual Results:

      Optimistic locking issues exist in logs : 

      false06:26:24 [] [] [] [] ERROR DirectJDKLog         Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException$InternalServerError: [500 Internal Server Error] during [PUT] to [http://10.36.1.244:9130/inventory/items/e32f606e-2cdb-445c-b6ab-03cc55f29d6d] [InventoryClient#putItem(String,Item)]: [{ "message": "Cannot update record e32f606e-2cdb-445c-b6ab-03cc55f29d6d because it has been changed (optimistic locking): Stored _version is 2, _version of request is 1", "severity": "ERROR", "code": ... (401 bytes)]] with root causefeign.FeignException$InternalServerError: [500 Internal Server Error] during [PUT] to [http://10.36.1.244:9130/inventory/items/e32f606e-2cdb-445c-b6ab-03cc55f29d6d] [InventoryClient#putItem(String,Item)]: [{ "message": "Cannot update record e32f606e-2cdb-445c-b6ab-03cc55f29d6d because it has been changed (optimistic locking): Stored _version is 2, _version of request is 1", "severity": "ERROR", "code": ... (401 bytes)] at feign.FeignException.serverErrorStatus(FeignException.java:231) ~[feign-core-10.12.jar!/:?] at feign.FeignException.errorStatus(FeignException.java:180) ~[feign-core-10.12.jar!/:?] at feign.FeignException.errorStatus(FeignException.java:169) ~[feign-core-10.12.jar!/:?] at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:92) ~[feign-core-10.12.jar!/:?]
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                khandramai Viachaslau Khandramai
                Reporter:
                Harbuz Aliaksei Harbuz
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases