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-8896] NPE during Process Migration when Boundary Timer is fired but UserTask not completed #1578

Merged
merged 3 commits into from Jan 17, 2020

Conversation

elguardian
Copy link
Member

self remove timer if there is no next boundary event in human task

@elguardian elguardian changed the title Jbpm 8896 [JBPM-8896] NPE during Process Migration when Boundary Timer is fired but UserTask not completed Jan 8, 2020
@elguardian
Copy link
Member Author

this is ok to test.

Copy link
Contributor

@mswiderski mswiderski left a comment

Choose a reason for hiding this comment

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

the fix looks proper to me, just to investigate why the build failed.

@elguardian
Copy link
Member Author

Jenkins restest this please.

@gmunozfe
Copy link
Member

gmunozfe commented Jan 8, 2020

Both tests (org.jbpm.integrationtests.ProcessStateTest.testTimerState & org.jbpm.integrationtests.ProcessTimerTest.testOnEntryTimerExecutedMultipleTimes) are failing because the timer is removed though it's expected to be triggered more times, due to their period is not zero.

Maybe it can be added this condition to remove only timers without defined period:
if (handler.getNext() == null && timerInstance.getPeriod() == 0L)

@elguardian
Copy link
Member Author

Failure unrelated.
Jenkins retest this please.

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, just a minor comment in case you want to achieve it.

@gmunozfe
Copy link
Member

@elguardian I've created a test with Quartz timers and springboot, and it's failing because jobHandler is null, so timer is not removed

droolsjbpm-integration#1980

@gmunozfe
Copy link
Member

It seems droolsjbpm-integration test with Quartz timers is working with this new commit. Thanks @elguardian !

@gmunozfe
Copy link
Member

jenkins retest this

@sonarcloud
Copy link

sonarcloud bot commented Jan 16, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@gmunozfe
Copy link
Member

This is ok to merge

@elguardian
Copy link
Member Author

@kiegroup/gatekeepers can you merge ?

@triceo triceo merged commit 2a6b1bd into kiegroup:master Jan 17, 2020
@elguardian elguardian deleted the JBPM-8896 branch January 17, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants