Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-481

mod-orders crashes when creating 10,450 Composite Orders

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      Thunderjet
    • Affected Institution:
      OTHER

      Description

      Overview:
      One of the EBSCO's customer is trying to load 10K Composite Orders in the Honeysuckle environment. POST /orders/composite-orders fails with 503 Service Temporarily Unavailable"

      Steps to Reproduce:

      1. Log into some FOLIO environment as User X
        Use PTF env by logging in as folio user

      Expected Results:
      POST /orders/composite-orders should load all Orders
      Actual Results:
      Few of the Composite Orders fail to create because mod-orders crashes with OOM error.

      Additional Information:
      Current versions:
      Orders Business Logic Module (mod-orders-11.1.2)
      Orders CRUD module (mod-orders-storage-11.1.4)

      Resource allocation to mod-orders:
      memory - 512 mb
      cpu - 128

      Sample composite order data with 1 poLine:

      {
        "poNumber": "E79077782",
        "poNumberSuffix": "2014",
        "orderType": "Ongoing",
        "billTo": "80af4e86-2425-46bb-be5d-57302ffad6ad",
        "shipTo": "80af4e86-2425-46bb-be5d-57302ffad6ad",
        "manualPo": false,
        "reEncumber": true,
        "ongoing": {
          "interval": 365,
          "manualRenewal": false,
          "isSubscription": true,
          "renewalDate": "2014-12-31T00:00.000+00:00",
          "reviewPeriod": 90
        },
        "vendor": "ede1513a-ea9b-46e5-8f2c-7d93836f9742",
        "approved": true,
        "workflowStatus": "Open",
        "closeReason": {
          "reason": "",
          "note": ""
        },
        "tags": {
          "tagList": [
            "PHILOS"
          ]
        },
        "compositePoLines": [
          {
            "id": "15ca816c-86e1-4047-8cdf-26de090a5584",
            "checkinItems": false,
            "acquisitionMethod": "Purchase At Vendor System",
            "alerts": [],
            "claims": [],
            "collection": false,
            "cost": {
              "listUnitPriceElectronic": 63.43,
              "currency": "GBP",
              "discountType": "percentage",
              "quantityElectronic": 1,
              "poLineEstimatedPrice": 63.43
            },
            "details": {
              "productIds": [],
              "subscriptionFrom": "2014-01-01T00:00.000+00:00",
              "subscriptionTo": "2014-12-31T00:00.000+00:00"
            },
            "eresource": {
              "activated": false,
              "createInventory": "None",
              "trial": false,
              "accessProvider": "ede1513a-ea9b-46e5-8f2c-7d93836f9742",
              "materialType": "615b8413-82d5-4203-aa6e-e37984cb5ac3"
            },
            "fundDistribution": [],
            "isPackage": false,
            "orderFormat": "Electronic Resource",
            "poLineDescription": "",
            "paymentStatus": "Pending",
            "physical": {
              "createInventory": "None",
              "materialType": "615b8413-82d5-4203-aa6e-e37984cb5ac3",
              "materialSupplier": "ede1513a-ea9b-46e5-8f2c-7d93836f9742",
              "volumes": []
            },
            "receiptStatus": "Receipt Not Required",
            "reportingCodes": [],
            "rush": false,
            "source": "User",
            "tags": {
              "tagList": [
                "PHILOS",
                "ZP-43840-00"
              ]
            },
            "description": "Subscription Start End Volume:  44(01/14)-44(12/14)\nOther notes: 2014 ISSUES / ",
            "selector": "",
            "titleOrPackage": "Idealistic Studies",
            "vendorDetail": {
              "refNumber": "1610868",
              "refNumberType": "Agent's unique subscription reference number",
              "instructions": "Invoice Date: 2015-12-04"
            }
          }
        ]
      }
      

      There are also composite Orders with 1000 poLines per Order

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                varunjavalkar Varun Javalkar
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases