Skip to content
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

Merged
merged 1 commit into from May 11, 2022

Conversation

elguardian
Copy link
Member

@mareknovotny
Copy link
Member

jenkins do fdb

Copy link
Member

@gmunozfe gmunozfe left a 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

@@ -16,10 +16,19 @@

package org.jbpm.services.ejb.timer;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used, remove

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing "@column" annotation

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@@ -54,6 +54,7 @@ public void setup() {
timers.add(timer1);

scheduler = new EJBTimerScheduler();
scheduler.setUseLocalCache(true);
Copy link
Member

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?

Copy link
Member Author

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.

@mareknovotny
Copy link
Member

jenkins do fdb

@sonarcloud
Copy link

sonarcloud bot commented May 10, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug D 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 13 Code Smells

57.0% 57.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@gmunozfe gmunozfe left a 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 !

@elguardian elguardian merged commit 93726f5 into kiegroup:main May 11, 2022
@elguardian elguardian deleted the JBPM-10072 branch May 11, 2022 10:08
elguardian added a commit to elguardian/jbpm that referenced this pull request May 11, 2022
elguardian added a commit that referenced this pull request May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants