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

Throw correct exception when looking for discovery module #2635

Closed
wants to merge 1 commit into from

Conversation

jjongsma
Copy link
Contributor

@jjongsma jjongsma commented Feb 8, 2013

Currently throws the ClassNotFoundException from the original module loading attempt (something unhelpful like "ec2") instead of the fully qualified class ES looks for in the end (i.e. "org.elasticsearch.discovery.ec2.Ec2DiscoveryModule")

Helped me debug classloader issues with OSGI.

@s1monw
Copy link
Contributor

s1monw commented Feb 9, 2013

Maybe we should put both classnames we try to load into the error message to prevent any confusion here? I agree we should include the last exception but I think it makes sense to have the short name in there as well? This is usually thrown on startup so we should be super verbose, no?

@jjongsma
Copy link
Contributor Author

The shortname (load attempt #1) is already included in the log message:

..."with value [" + get(setting) + "]...

There are three ClassNotFoundExceptions thrown and caught in here, are you referring to #2?

@s1monw
Copy link
Contributor

s1monw commented Mar 1, 2013

ah yeah I guess you are right... I will merge this soon.

@s1monw
Copy link
Contributor

s1monw commented Mar 1, 2013

pushed to master - thanks

@s1monw s1monw closed this Mar 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants