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

improve boostrap log to expose the wrong classLoader #24533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericyuliu
Copy link
Contributor

@ericyuliu ericyuliu commented Feb 11, 2025

Summary:
Previou exception message does not explain the wrong classloader.
Root cause:
Impulse code is not executed within a context class loader. There is a chance some classes may be loaded by a connector specific class loader.

New message:
Caused by: java.lang.IllegalArgumentException: Expected com.facebook.presto.$gen.WeightedAverageStateSerializer_20250210_222951_7's classloader to be of type com.facebook.presto.bytecode.DynamicClassLoader, but is com.facebook.presto.bytecode.DynamicClassLoader

Differential Revision: D69416153

@facebook-github-bot
Copy link
Collaborator

This pull request was exported from Phabricator. Differential Revision: D69416153

Summary:
T214943360
Impulse class loader issue causing bootstrap exception

Prev
Caused by: java.lang.IllegalArgumentException: Expected com.facebook.presto.$gen.WeightedAverageStateSerializer_20250210_222951_7's classloader to be of type com.facebook.presto.bytecode.DynamicClassLoader, but is com.facebook.presto.bytecode.DynamicClassLoader

Differential Revision: D69416153
@facebook-github-bot
Copy link
Collaborator

This pull request was exported from Phabricator. Differential Revision: D69416153

@rschlussel
Copy link
Contributor

nit: capitalize the commit title and remove references to internal connectors.

@jaystarshot
Copy link
Member

Looks like you need a rebase to fix the maven checks

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

Successfully merging this pull request may close these issues.

4 participants