-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to load MacOSDnsServerAddressStreamProvider on Apple Silicon with statsd meter registries #3066
Comments
For clarification and prioritization: is running on Apple silicon for development purposes and not production? I recently got a machine with Apple silicon, so I can test things out now. I'm able to see the error log as well, though it seems metrics still make it to a locally running statsd instance. |
Yeah so far this is just for development purposes |
Also adds dependency management of netty dependencies using the netty-bom. This avoids an error being logged on Apple silicon when Netty tries to load the native DNS resolver. Resolves gh-3066
I am getting this error when using version 1.9.2. Is the fix only in 1.10.0-M3 ? I am trying to use the version compatible with the latest spring version according to this: https://docs.spring.io/spring-boot/docs/2.7.2/reference/html/dependency-versions.html#appendix.dependency-versions |
The change that resolved this is not included in 1.9.x releases. Since the error log is generally only expected to happen on developer machines and it does not affect functionality, the decision was made to not add risk to a patch release by including the changes.
You would need to use the version of Spring Boot compatible with Micrometer 1.10.0-M3 to avoid that error. |
Hi @shakuzen |
@gkonovalov the resolution of this issue was to add the aarch64 macos Netty DNS resolver dependency. You can try out 1.10.0-RC1 or the latest snapshots that contain that. The 1.10.0 GA is planned for next week. Let us know if the issue is not fixed for you in those versions. |
Thank you so much! |
Describe the bug
When running a statsd meter registry on an Apple Silicon based machine with native (arm64) java, Micrometer logs the following error:
Environment
To Reproduce
How to reproduce the bug:
Launch a Spring Boot application with a statsd meter registry on an Apple Silicon based computer. The error and full stack trace will be logged like the following:
Expected behavior
The application should be able to load this class or not log the error if it's not significant.
Additional context
This appears to be related to netty/netty#11020 but since Micrometer includes a shaded version of Netty, this can't be fixed by telling applications to include that suggested dependency in the fix.
The text was updated successfully, but these errors were encountered: