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-10172] Same id used for timers when using per request #2285

Merged
merged 6 commits into from
May 26, 2023

Conversation

fjtirado
Copy link
Contributor

@fjtirado fjtirado commented May 23, 2023

This basically makes timer id to behave as if singleton strategy was used both for per request and per process instance.
Thats clearly needed on per request. Singleton remains the same and the only concern might be that know the timer id is globally unique and before, when using per process instance, it was unique per process instance.
But I think that a per process instance id into a globally unique one should not cause any issue (the contrary is not true)

Changed the approach to use the max process instance timer id if the runtime strategy if not per process instance

JIRA:

link

@fjtirado fjtirado requested a review from krisv May 23, 2023 14:52
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.

Some tests are failing, need to check

@sonarcloud
Copy link

sonarcloud bot commented May 25, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

92.9% 92.9% 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, it works like a charm, great work @fjtirado !

@fjtirado fjtirado added backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch labels May 25, 2023
@fjtirado fjtirado merged commit aeca4f6 into kiegroup:main May 26, 2023
github-actions bot pushed a commit that referenced this pull request May 26, 2023
* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
github-actions bot pushed a commit that referenced this pull request May 26, 2023
* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit that referenced this pull request Jun 1, 2023
…2287)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit that referenced this pull request Jun 2, 2023
…2286)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit to fjtirado/jbpm that referenced this pull request Jul 25, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
gmunozfe added a commit to gmunozfe/jbpm that referenced this pull request Jul 26, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit to fjtirado/jbpm that referenced this pull request Aug 17, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit to fjtirado/jbpm that referenced this pull request Sep 15, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit to fjtirado/jbpm that referenced this pull request Sep 15, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
fjtirado added a commit to fjtirado/jbpm that referenced this pull request Nov 7, 2023
…#2285)

* [JBPM-10172] Same id used for timers when using per request

* [JBPM-10172] Fix test without timer name

* [KOGITO-10172] Kris proposal

* [JBPM-10172] Avoiding null pointer if manager is null

* [JBPM-10172] Sonar warnings

* [JBPM-10172] Fixing tests

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants