Skip to content
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

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

Open
nightswimmings opened this issue Mar 29, 2022 · 2 comments
Open

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

nightswimmings opened this issue Mar 29, 2022 · 2 comments

Comments

@nightswimmings
Copy link

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

@shakuzen
Copy link
Member

Does what's suggested in this comment fix it? I suspect it's an issue of alpine not having a required dependency.

@nightswimmings
Copy link
Author

I never answered this! My apologies. But yes, the gcompat thing fixed it. is it still necessary in 2023?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants