Infinispan health check for Kogito project

84 views
Skip to first unread message

Jakub Grabowski

unread,
Jun 25, 2021, 9:00:10 AM6/25/21
to Kogito development mailing list
Hi,

I tried to embed Infinispan healthcheck in my Kogito BPMN project with Infinispan but it doesn't seem to work.

Including quarkus-smallrye-health gives Kafka healthcheck only. I've also added org.kie.kogito:infinispan-quarkus-health-addon but it doesn't seem to give Infinispan health check as well.

Regards,
Jakub.

Ricardo Zanini

unread,
Jun 28, 2021, 8:44:10 AM6/28/21
to Kogito development mailing list
Hi Jakub!

What doesn't work? You mean you make a GET request to the healthcheck endpoint and you receive a 404?

Zanini


--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/379adbdd-9759-416c-a0b7-f8b1d2813da1n%40googlegroups.com.

Jakub Grabowski

unread,
Jun 28, 2021, 8:46:50 AM6/28/21
to kogito-de...@googlegroups.com, Kogito development mailing list
No. I doesn't include Inifnispan healthcheck in q/health endpoint. Only Kafka and my custom healtcheck is returned.

{
  "status": "DOWN",
  "checks": [
    {
      "name": "SmallRye Reactive Messaging - liveness check",
      "status": "DOWN",
      "data": {
        "kafka-connector": "[KO]"
      }
    },
    {
      "name": "Custom healthcheck",
      "status": "UP"
    },
    {
      "name": "SmallRye Reactive Messaging - readiness check",
      "status": "DOWN",
      "data": {
        "kafka-connector": "[KO]"
      }
    }
  ]
}

Jakub.

Ricardo Zanini

unread,
Jun 28, 2021, 8:49:09 AM6/28/21
to Kogito development mailing list
Can you share your project or a reproducer?

--
Zanini


Jakub Grabowski

unread,
Jun 29, 2021, 5:02:34 AM6/29/21
to Kogito development mailing list
Hi,

I cannot share the project I'm experiencing problem on. I tried to prepare a reproducer but it even fails on compilation when I add infinispan-persistence. It's here:


I'm getting error below when trying to compile. No protobuf files are generated.

ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.13.3.Final:build (default) on project infinispan-health-reproducer: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor#postGenerationProcessing threw an exception: java.lang.IllegalStateException: src/main/java/org/kie/kogito/persistence/KogitoProcessInstancesFactoryImpl.java (4:96) : The type KogitoProcessInstancesFactoryImpl must implement the inherited abstract method ProtoStreamProcessInstancesFactory.proto()
[ERROR] src/main/java/org/kie/kogito/persistence/KogitoProcessInstancesFactoryImpl.java (4:96) : The type KogitoProcessInstancesFactoryImpl must implement the inherited abstract method ProtoStreamProcessInstancesFactory.proto()
[ERROR]         at org.kie.kogito.quarkus.common.deployment.InMemoryCompiler.compile(InMemoryCompiler.java:100)
[ERROR]         at org.kie.kogito.quarkus.common.deployment.KogitoQuarkusResourceUtils.compileGeneratedSources(KogitoQuarkusResourceUtils.java:159)
[ERROR]         at org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor.generatePersistenceInfo(ProcessesAssetsProcessor.java:166)
[ERROR]         at org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor.postGenerationProcessing(ProcessesAssetsProcessor.java:122)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:829)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]

Jakub.

Ricardo Zanini

unread,
Jun 29, 2021, 6:12:54 AM6/29/21
to Kogito development mailing list
Thanks, Jakub! I'll take a look :)

Reply all
Reply to author
Forward
0 new messages