Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14650

timeout for requesting [POST] process-instance/count

      Environment (Required on creation):

      Using the Docker Container on a Windows 11 WSL 2:
      https://hub.docker.com/r/camunda/camunda-bpm-platform

      docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production

      PAUSE

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      I have completed 4 Process-Instances. I'm trying to implement a backend Filter but after I try to create a request to the endpoint, im going into a timeout error. But this only happens if:

      • I got more than 4 unique properties
      • on 'process-instance/count'

      Steps to reproduce (Required on creation):

      1. docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production
      2. Create a POST-Request per e.q Postman
        1. POST: https://localhost:8443/engine-rest/history/process-instance/count
        2. Body: 
          {
              "processDefinitionKey": "process_spezialAnlage",
              "completed": "true",
              "variableValuesIgnoreCase": true,
              "orQueries": [
                  {
                      "variables": [
                          {
                              "name": "Prop1",
                              "operator": "like",
                              "value": "%123%"
                          },
                          {
                              "name": "Prop2",
                              "operator": "like",
                              "value": "%123%"
                          },
                          {
                              "name": "Prop3",
                              "operator": "like",
                              "value": "%123%"
                          },
                          {
                              "name": "Prop4",
                              "operator": "like",
                              "value": "%123%"
                          },
                          {
                              "name": "Prop5",
                              "operator": "like",
                              "value": "%123%"
                          }
                      ]
                  }
              ]
          }

      Observed Behavior (Required on creation):

      Running into a timeout or loaded after a couple of minutes.

      Expected behavior (Required on creation):

      Getting my Data.

      Root Cause (Required on prioritization):

      Solution Ideas (Optional):

      Indexing database?

      Better database (more performant) queries? 

      Hints (optional):

      This queries are working on other endpoints perfectly and without a timeout (or a long request time). It looks like this specific endpoint is requesting very long. If I use another endpoint "https://localhost:8443/engine-rest/history/task/count" with exact the same query (but changing variables to processVariables). It works under 10ms and I got my completed tasks!

        This is the controller panel for Smart Panels app

            [CAM-14650] timeout for requesting [POST] process-instance/count

            Kerim Kale created issue -
            Kerim Kale made changes -
            Summary Original: process-instance/count New: timeout for requesting [POST] process-instance/count
            Kerim Kale made changes -
            Description Original: h3. Environment (Required on creation):

            Using the Docker Container on a Windows 11 WSL 2:
            [https://hub.docker.com/r/camunda/camunda-bpm-platform]



            docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production

            PAUSE
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            I have completed 4 Process-Instances. I'm trying to implement a backend Filter but after I try to create a request to the endpoint, im going into a timeout error. But this only happens if:
             * I got more than 4 unique properties
             * on 'process-instance/count'

            h3. Steps to reproduce (Required on creation):
             # docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production
             # Create a POST-Request per e.q Postman
             ## POST: [https://localhost:8443/engine-rest/history/process-instance/count]
             ## Body: 
            {code:java}
            {
                "processDefinitionKey": "process_spezialAnlage",
                "completed": "true",
                "variableValuesIgnoreCase": true,
                "orQueries": [
                    {
                        "variables": [
                            {
                                "name": "Prop1",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop2",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop3",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop4",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop5",
                                "operator": "like",
                                "value": "%123%"
                            }
                        ]
                    }
                ]
            }{code}

            h3. Observed Behavior (Required on creation):

            Running into a timeout or loaded after a couple of minutes.
            h3. Expected behavior (Required on creation):

            Getting my Data.
            h3. Root Cause (Required on prioritization):
            h3. Solution Ideas (Optional):

            Indexing database?

            Better database (more performant) queries? 
            h3. Hints (optional):

            This queries are working on other endpoints perfectly and without a timeout (or a long request time). It looks like this specific endpoint is requesting very long. If I use 
            New: h3. Environment (Required on creation):

            Using the Docker Container on a Windows 11 WSL 2:
            [https://hub.docker.com/r/camunda/camunda-bpm-platform]

            docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production

            PAUSE
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            I have completed 4 Process-Instances. I'm trying to implement a backend Filter but after I try to create a request to the endpoint, im going into a timeout error. But this only happens if:
             * I got more than 4 unique properties
             * on 'process-instance/count'

            h3. Steps to reproduce (Required on creation):
             # docker run -d --name camunda-latest -p 8443:8443 camunda/camunda-bpm-platform:run-latest ./camunda.sh --production
             # Create a POST-Request per e.q Postman
             ## POST: [https://localhost:8443/engine-rest/history/process-instance/count]
             ## Body: 
            {code:java}
            {
                "processDefinitionKey": "process_spezialAnlage",
                "completed": "true",
                "variableValuesIgnoreCase": true,
                "orQueries": [
                    {
                        "variables": [
                            {
                                "name": "Prop1",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop2",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop3",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop4",
                                "operator": "like",
                                "value": "%123%"
                            },
                            {
                                "name": "Prop5",
                                "operator": "like",
                                "value": "%123%"
                            }
                        ]
                    }
                ]
            }{code}

            h3. Observed Behavior (Required on creation):

            Running into a timeout or loaded after a couple of minutes.
            h3. Expected behavior (Required on creation):

            Getting my Data.
            h3. Root Cause (Required on prioritization):
            h3. Solution Ideas (Optional):

            Indexing database?

            Better database (more performant) queries? 
            h3. Hints (optional):

            This queries are working on other endpoints perfectly and without a timeout (or a long request time). It looks like this specific endpoint is requesting very long. If I use another endpoint "https://localhost:8443/engine-rest/history/task/count" with exact the same query (but changing variables to processVariables). It works under 10ms and I got my completed tasks!
            Kerim Kale made changes -
            Affects Version/s New: 7.17.1 [ 17593 ]
            Kerim Kale made changes -
            Component/s New: bpmn model api [ 12250 ]
            Kerim Kale made changes -
            Labels Original: database history-api orQueries New: current_release database history-api orQueries
            Nikola Koevski made changes -
            Assignee New: Nikola Koevski [ nikola.koevski ]
            Thorben Lindhauer made changes -
            Resolution New: Won't Fix [ 2 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]

              nikola.koevski Nikola Koevski
              kerimDiligent Kerim Kale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: