New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JBPM-10072] EJBTimerScheduler.getTimerByName inefficient with large number of timers #2143
Conversation
fd55625
to
fa15415
Compare
jenkins do fdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to rename upgrade scripts
jbpm-db-scripts/src/main/resources/db/upgrade-scripts/db2/rhpam-7.13-to-7.14.sql
Outdated
Show resolved
Hide resolved
@@ -16,10 +16,19 @@ | |||
|
|||
package org.jbpm.services.ejb.timer; | |||
|
|||
import java.io.ByteArrayInputStream; | |||
import java.io.IOException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used, remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -49,6 +50,9 @@ public class TimerMappingInfo implements Serializable { | |||
@Column(nullable = false) | |||
private String uuid; | |||
|
|||
@Lob |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing "@column" annotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
...ejb/jbpm-services-ejb-timer/src/main/java/org/jbpm/services/ejb/timer/EJBTimerScheduler.java
Outdated
Show resolved
Hide resolved
@@ -54,6 +54,7 @@ public void setup() { | |||
timers.add(timer1); | |||
|
|||
scheduler = new EJBTimerScheduler(); | |||
scheduler.setUseLocalCache(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cache was causing a memory leak and it is not needed anymore.
jenkins do fdb |
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, awesome work @elguardian !
Jira: https://issues.redhat.com/browse/JBPM-10072