treblereel commented on PR #2074:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2074#issuecomment-2182135234

   The cause of this issue is that we continue to send the heartbeat when the 
CDI container is already shutting down and the 
`PostgreSqlJobServiceManagementRepository` is unable to obtain the `PgPool`. 
The fix involves stopping the heartbeat first (by checking isLeader()).
   
   This issue can be easily reproduced using the 
`examples/jbpm-compact-architecture-example` with the command `mvn clean 
package quarkus:dev -Pdevelopment`. To trigger the rebuild just edit 
`CandidateData.java` or `Offer.java` and reload the 
`http://localhost:8080/q/dev-ui/extensions`
   
   To verify the fix, build incubator-kie-kogito-apps followed by 
incubator-kie-tools, replacing `999-20240509-SNAPSHOT` with `999-SNAPSHOT`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to