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

[ONE-OFF] (7.12.1) EJBTimerScheduler.getTimerByName inefficient with large number of timers and 'org.jbpm.ejb.timer.local.cache=false' + claiming a task using the REST API with container alias

XMLWordPrintable

    • Icon: Support Patch Support Patch
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.12.1.GA
    • None
    • None

      PATCH NAME: RHPAM-4566
      PRODUCT NAME: Red Hat Process Automation Manager
      VERSION: 7.12.1
      DESCRIPTION: One-off patch for RHPAM-4566:

      PREREQUISITES:

      • Apply the DB schema updates in db directory matching your database:
      • Configure RHPAM
        • org.jbpm.ejb.timer.local.cache=false (disable local cache in memory)
        • jboss.ejb.timer.database.clearTimerInfoCacheBeyond=43200 (30 days as 30*24*60 min)

      MANUAL INSTALL INSTRUCTIONS FOR ALL PLATFORMS:

      1. Backup and remove the following jar:

      jbpm-flow-7.59.0.Final-redhat-00009.jar
      jbpm-persistence-jpa-7.59.0.Final-redhat-00009.jar
      jbpm-runtime-manager-7.59.0.Final-redhat-00009.jar
      jbpm-services-ejb-timer-7.59.0.Final-redhat-00009.jar
      kie-server-services-jbpm-7.59.0.Final-redhat-00009.jar

      from the following locations:

      $SERVER_DEPLOYMENT_DIR/kie-server.war/WEB-INF/lib/
      $SERVER_DEPLOYMENT_DIR/business-central/WEB-INF/lib/
      $RHPAM_ENGINE/
      $YOUR_OWN_APPLICATION_LIB/

      3. Unzip the file jboss-rhba-7.12.1-RHPAM-4566.zip and copy:

      RHPAM-4566/jbpm-flow-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-persistence-jpa-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-runtime-manager-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-services-ejb-timer-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/kie-server-services-jbpm-7.59.0.Final-redhat-00009-RHPAM-4566.jar

      to:

      $SERVER_DEPLOYMENT_DIR/kie-server.war/WEB-INF/lib
      $SERVER_DEPLOYMENT_DIR/business-central/WEB-INF/lib/
      $RHPAM_ENGINE
      $YOUR_OWN_APPLICATION_LIB

      MANUAL INSTALL INSTRUCTIONS FOR MAVEN BASED PROJECTS:

      1. Extract the attached zip (jboss-rhba-7.12.1-RHPAM-4566.zip) and change into the RHPAM-4566 directory

      2. Run the following commands to install the patch binaries to the local maven repository:

      mvn install:install-file \
      Dfile=RHPAM-4566/jbpm-flow-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/jbpm-flow-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/jbpm-flow-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      mvn install:install-file \
      Dfile=RHPAM-4566/jbpm-persistence-jpa-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/jbpm-persistence-jpa-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/jbpm-persistence-jpa-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      mvn install:install-file \
      Dfile=RHPAM-4566/jbpm-runtime-manager-jpa-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/jbpm-runtime-manager-jpa-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/jbpm-runtime-manager-jpa-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      mvn install:install-file \
      Dfile=RHPAM-4566/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      mvn install:install-file \
      Dfile=RHPAM-4566/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/jbpm-services-ejb-timer-jpa-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      mvn install:install-file \
      Dfile=RHPAM-4566/kie-server-services-jbpm-7.59.0.Final-redhat-00009RHPAM-4566.jar \
      Dsources=RHPAM-4566/kie-server-services-jbpm-7.59.0.Final-redhat-00009RHPAM-4566-sources.jar \
      DpomFile=RHPAM-4466/kie-server-services-jbpm-7.59.0.Final-redhat-00009RHPAM-4566.pom \
      -Dpackaging=jar

      3. Override the original version of modified jars explicitly declaring them in <dependencyManagement> of your project pom.xml:

      <dependency>
      <groupId>org.kie.server</groupId>
      <artifactId>kie-server-services-jbpm</artifactId>
      <version>7.59.0.Final-redhat-00009-RHPAM-4566</version>
      </dependency>

      ADDITIONAL INSTALL INSTRUCTIONS FOR ALL PLATFORMS:

      Find and replace the files
      jbpm-flow-7.59.0.Final-redhat-00009.jar
      jbpm-persistence-jpa-7.59.0.Final-redhat-00009.jar
      jbpm-runtime-manager-7.59.0.Final-redhat-00009.jar
      jbpm-services-ejb-timer-7.59.0.Final-redhat-00009.jar
      kie-server-services-jbpm-7.59.0.Final-redhat-00009.jar

      with the patched files:
      RHPAM-4566/jbpm-flow-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-persistence-jpa-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-runtime-manager-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/jbpm-services-ejb-timer-7.59.0.Final-redhat-00009-RHPAM-4566.jar
      RHPAM-4566/ie-server-services-jbpm-7.59.0.Final-redhat-00009-RHPAM-4566.jar

      for all occurences of that file in your project.

      CREATOR:
      Alberto Fanjul
      DATE:
      27-Oct-2022

              afanjula@redhat.com Alberto Fanjul Alonso
              afanjula@redhat.com Alberto Fanjul Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: