-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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-10187] Sorting resources to avoid deadlock #2318
Conversation
cbaf116
to
33a3fb7
Compare
fa432de
to
4a2eb20
Compare
8554120
to
118fc9a
Compare
92c78c6
to
533d178
Compare
533d178
to
2779e26
Compare
SonarCloud Quality Gate failed. 0 Bugs 61.3% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one.
of course we need to remove log trace msgs from code |
why? These traces are legit anyway |
ok, i thought it is just for debugging purposes. If they are valid even for production, then ok. |
@@ -389,8 +390,8 @@ protected boolean canDispose(RuntimeEngine runtime) { | |||
&& tm.getStatus() != TransactionManager.STATUS_COMMITTED) { | |||
return false; | |||
} | |||
} catch (Exception e) { | |||
logger.warn("Exception dealing with transaction", e); | |||
} catch (SessionNotFoundException e) { |
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 equivalent. lossing info in other exceptions
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.
The intention of this change is to let the transaction fail if the exception is different from SessionNotFoundException, but to be honest I do not recall why I though that will be useful for this particular issue.
So, I guess the question is, does it make sense to hide all exceptions here or just the SesisonNotFound?
TLGTM without going too deep into the details. |
jenkins retest this |
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.
Some minor comments about tracing, possible null pointers and skipping supresswarnings)
...ce/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/JpaProcessPersistenceContext.java
Show resolved
Hide resolved
...me-manager/src/main/java/org/jbpm/runtime/manager/impl/PerProcessInstanceRuntimeManager.java
Show resolved
Hide resolved
...me-manager/src/main/java/org/jbpm/runtime/manager/impl/PerProcessInstanceRuntimeManager.java
Show resolved
Hide resolved
...me-manager/src/main/java/org/jbpm/runtime/manager/impl/PerProcessInstanceRuntimeManager.java
Show resolved
Hide resolved
...me-manager/src/main/java/org/jbpm/runtime/manager/impl/PerProcessInstanceRuntimeManager.java
Show resolved
Hide resolved
jenkins retest this please |
Co-authored-by: Gonzalo Muñoz <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs 61.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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, excellent work @fjtirado !
* [JBPM-10187] Adding traces for process instance info * [JBPM-10187] Propagate exceptions different than SessionNotFound * [JBPM-10187] Handling sessionnotfound in local thread * [JBPM-10187] Using proper SessionNotFoundException Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one. * [JBPM-10187] Fully logging marshaling exception * [JBPM-10187] Gonzalo comments Co-authored-by: Gonzalo Muñoz <[email protected]> --------- Co-authored-by: Gonzalo Muñoz <[email protected]>
* [JBPM-10187] Adding traces for process instance info * [JBPM-10187] Propagate exceptions different than SessionNotFound * [JBPM-10187] Handling sessionnotfound in local thread * [JBPM-10187] Using proper SessionNotFoundException Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one. * [JBPM-10187] Fully logging marshaling exception * [JBPM-10187] Gonzalo comments Co-authored-by: Gonzalo Muñoz <[email protected]> --------- Co-authored-by: Gonzalo Muñoz <[email protected]>
* [JBPM-10187] Adding traces for process instance info * [JBPM-10187] Propagate exceptions different than SessionNotFound * [JBPM-10187] Handling sessionnotfound in local thread * [JBPM-10187] Using proper SessionNotFoundException Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one. * [JBPM-10187] Fully logging marshaling exception * [JBPM-10187] Gonzalo comments Co-authored-by: Gonzalo Muñoz <[email protected]> --------- Co-authored-by: Gonzalo Muñoz <[email protected]>
* [JBPM-10187] Adding traces for process instance info * [JBPM-10187] Propagate exceptions different than SessionNotFound * [JBPM-10187] Handling sessionnotfound in local thread * [JBPM-10187] Using proper SessionNotFoundException Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one. * [JBPM-10187] Fully logging marshaling exception * [JBPM-10187] Gonzalo comments --------- Co-authored-by: Francisco Javier Tirado Sarti <[email protected]> Co-authored-by: Gonzalo Muñoz <[email protected]>
* [JBPM-10187] Adding traces for process instance info * [JBPM-10187] Propagate exceptions different than SessionNotFound * [JBPM-10187] Handling sessionnotfound in local thread * [JBPM-10187] Using proper SessionNotFoundException Drools is using a different SessionNotFoundException that runtime manager. We are only interested on the persistence one. * [JBPM-10187] Fully logging marshaling exception * [JBPM-10187] Gonzalo comments --------- Co-authored-by: Francisco Javier Tirado Sarti <[email protected]> Co-authored-by: Gonzalo Muñoz <[email protected]>
JIRA:
link
referenced Pull Requests:
kiegroup/drools#11