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

Java: updating error message in thread pool supplier #3001

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ public static Supplier<ThreadPoolResource> getThreadPoolResourceSupplier() {
return EpollResource::new;
}
// TODO support IO-Uring and NIO
throw new RuntimeException("Current platform supports no known thread pool resources");
String errorMessage =
Copy link
Collaborator

Choose a reason for hiding this comment

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

While this adequately describes the problem, and identifies some system information, is there an solution, fixes, or workarounds that the user might try to resolve the issue?

"Cannot load Netty native components for the current os version and arch: "
+ System.getProperty("os.name")
+ " "
+ System.getProperty("os.version")
+ " "
+ System.getProperty("os.arch");
throw new RuntimeException(errorMessage);
}
}
Loading