Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@choplin
Copy link
Collaborator

@choplin choplin commented Oct 10, 2023

Description

When we run a container of the schema-importer image of M1 Mac, we get a warnings as follows:

[main] WARN com.datastax.driver.core.NettyUtil - Found Netty's native epoll transport in the classpath, but epoll is not available. Using NIO instead.
java.lang.UnsatisfiedLinkError: could not load a native library: netty_transport_native_epoll_aarch_64
	at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:239)

This is due to the missing of the Netty's epoll library for the Arm architecture. To solve this, this commit adds dependencies on amd64 and arm64 explicitly.

Related issues and/or PRs

Please refer to the Slack thread for more details:
https://scalar-labs.slack.com/archives/CDSFWGSTZ/p1696562747354819

Changes made

Add explicit dependencies on netty-transport-native-epoll and netty-transport-native-kqueue for amd64 and arm64.

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

None

Release notes

Fix warning regarding Netty's native epoll transport

…rary

When we run a container of schema-importer image of M1 Mac, we got a
warnings as follows:

[main] WARN com.datastax.driver.core.NettyUtil - Found Netty's native epoll transport in the classpath, but epoll is not available. Using NIO instead.
java.lang.UnsatisfiedLinkError: could not load a native library: netty_transport_native_epoll_aarch_64
	at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:239)

This is due to the missing of Netty's epoll library for Arm architecture.
To solve this, this commits add an dependencies on amd64 and arm64
explicitly.
Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

Copy link
Contributor

@kota2and3kan kota2and3kan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@choplin choplin merged commit d466c84 into main Oct 11, 2023
@choplin choplin deleted the fix/fix_warning_due_to_netty_native_transport branch October 11, 2023 07:25
@choplin
Copy link
Collaborator Author

choplin commented Oct 12, 2023

Thank you guys for your quick review!

@choplin choplin mentioned this pull request Oct 19, 2023
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants