Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4898

Pooling in KafkaServerConsumer not working as expected

XMLWordPrintable

      Using the sample from https://blog.kie.org/2020/12/jbpm-messages-and-kafka.html I am testing the bulk creation of process instances by sending in a large number of messages:

      $ kafka-console-producer --broker-list localhost:9092 --topic HelloMessage < /tmp/data.txt
      

      Using the following system property, I'd expect the process instances to be created in parallel on multiple threads:

      org.kie.server.jbpm-kafka.ext.maxNotifyThreads (default 10)
      

      However, this is not the case and all instances are created sequentially on a single thread:

      2024-02-28 23:08:44,107 DEBUG [org.kie.server.services.jbpm.kafka.KafkaServerConsumer] (pool-17-thread-1) Sending event with name HelloMessage to deployment kafka-test:1.0.0-SNAPSHOT with data Person [name=Real Betis Balompie, age=113]
      2024-02-28 23:08:44,116 DEBUG [org.kie.server.services.jbpm.kafka.KafkaServerConsumer] (pool-17-thread-1) Sending event with name HelloMessage to deployment kafka-test:1.0.0-SNAPSHOT with data Person [name=FC Bayern, age=97]
      2024-02-28 23:08:44,125 DEBUG [org.kie.server.services.jbpm.kafka.KafkaServerConsumer] (pool-17-thread-1) Sending event with name HelloMessage to deployment kafka-test:1.0.0-SNAPSHOT with data Person [name=BVB, age=101]
      2024-02-28 23:08:44,135 DEBUG [org.kie.server.services.jbpm.kafka.KafkaServerConsumer] (pool-17-thread-1) Sending event with name HelloMessage to deployment kafka-test:1.0.0-SNAPSHOT with data Person [name=FC Union, age=37]
      2024-02-28 23:08:44,147 DEBUG [org.kie.server.services.jbpm.kafka.KafkaServerConsumer] (pool-17-thread-1) Sending event with name HelloMessage to deployment kafka-test:1.0.0-SNAPSHOT with data Person [name=RB Leipzig, age=16]
      

              elguardian@gmail.com Enrique González Martínez (Inactive)
              martinweiler Martin Weiler (Inactive)
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: