Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2862

Space creation through business-central REST API fails after applying RHPAM-3600 related config settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • Undefined
    • NEW
    • NEW

      Using RHPAM 7.10.1 + RHPAM-3600 related one-off patch binaries with the following configuration (on a machine with 8 cores):

              <property name="org.appformer.concurrent.managed.thread.limit" value="9"/>
              <property name="org.appformer.concurrent.unmanaged.thread.limit" value="9"/>
              <property name="org.appformer.concurrent.indexing.thread.limit" value="9"/>
              <property name="org.appformer.concurrent.fs.watch.thread.limit" value="9"/>
      

      we are having issues with the following REST call:

      curl -u xxxx:xxxx -X POST http://localhost:8080/business-central/rest/spaces -H 'Content-Type: application/json' -d '{"name":"test01","owner":"bpmsAdmin","description":"test01"}' -k -v
      

      The resulting job stays in "ACCEPTED" status but no space is created:

      2021-06-02 18:32:41,858 DEBUG [org.guvnor.rest.backend.ProjectResource] (default task-288) -----createSpace--- , Space name: test01, Space owner: bpmsAdmin, Default group id : null
      2021-06-02 18:32:41,858 DEBUG [org.guvnor.rest.backend.ProjectResource] (default task-288) -----createSpace--- , Space name: test01, Space owner: bpmsAdmin, Default group id : null
      2021-06-02 18:32:41,858 DEBUG [org.guvnor.rest.backend.JobRequestScheduler] (default task-288) Scheduling job request with id: 1622658761858-8 and command class: org.guvnor.rest.backend.cmd.CreateSpaceCmd
      2021-06-02 18:32:41,858 DEBUG [org.guvnor.rest.backend.JobRequestScheduler] (default task-288) Scheduling job request with id: 1622658761858-8 and command class: org.guvnor.rest.backend.cmd.CreateSpaceCmd
      

      Additional observations:

      • Increasing the value forĀ org.appformer.concurrent.unmanaged.thread.limit did not help
      • REST API call was successfully executed with org.appformer.concurrent.unmanaged.thread.limit set to 0

            aparedes@redhat.com Adriel Paredes
            aparedes@redhat.com Adriel Paredes
            Tomas David Tomas David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: