nrknithin opened a new pull request, #2256: URL: https://github.com/apache/incubator-kie-examples/pull/2256
## Summary `process-monitoring-quarkus` is the example users copy for Prometheus monitoring and health checks. On Quarkus 3.33, `protobuf-java` 3.25.5 next to gRPC 1.81.0 breaks the gRPC health service. The log shows: ``` Unable to start the gRPC server: java.lang.NoClassDefFoundError: com/google/protobuf/RuntimeVersion$RuntimeDomain ``` and `/q/health/ready` returns 503. This only happens when the application also has a gRPC service, so the example could not catch it. This PR adds the smallest real gRPC service that makes the example exercise that path. ## Changes | File | Change | |------|--------| | `kogito-quarkus-examples/process-monitoring-quarkus/pom.xml` | added an explicit `quarkus-grpc` dependency and the `generate-code` goal on `quarkus-maven-plugin` | | `kogito-quarkus-examples/process-monitoring-quarkus/src/main/proto/order_status.proto` | new: `OrderStatusService.GetStatus` | | `kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/grpc/OrderStatusServiceImpl.java` | new: looks up the `demo.orders` process instance and returns `FOUND` or `NOT_FOUND` | | `kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProcessMonitoringReadinessTest.java` | new `@QuarkusTest`: `/q/health/ready` is UP, and a gRPC call for an unknown id returns `NOT_FOUND` (10 s timeout) | | `kogito-quarkus-examples/process-monitoring-quarkus/README.md` | a short section on the gRPC endpoint (port 9000, a `grpcurl` example) | ## Expected behaviour With a protobuf 3.25.5 BOM the build fails, because the generated gRPC code needs `com.google.protobuf.RuntimeVersion`, or readiness returns 503. With a BOM that pins protobuf to the Quarkus-managed 4.33.2, it passes. The same setup was verified red and green in `incubator-kie`. This example has not been run against either BOM. ## Related PRs - https://github.com/apache/incubator-kie/pull/7322 - https://github.com/apache/incubator-kie-tools/pull/4092 -- 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]
