Skip to content

Prometheus-rsocket-client seems to have issues with JDK17 #53

@nightswimmings

Description

@nightswimmings

Looks like executing the prometheus-rsocket-client on Java 17 fails because of some runtime errors of snappy-java library

"Custom destroy method 'pushAndClose' on bean with name 'prometheusRSocketClient' threw an exception: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.pure.UnsafeUtil"

xerial/snappy-java#305

This is the evidence I collected, but I see no mention here so in case I am missing something I'll stand corrected

I tried with both 1.3.0 and 1.4.0, as soon as I use eclipse-temurin:17-jdk-alpine as my base image, some metrics (I guess those collected during runtime, and relying on pushAndClose) don't get into the proxy and I get this error in logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions