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

Ensure pool entry is not null when instrumenting it #867

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

ecyshor
Copy link
Contributor

@ecyshor ecyshor commented Oct 2, 2020

If an exception is thrown in the createPoolEntry method in the HikariPool then null will be returned (https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/pool/HikariPool.java#L507).
This causes a NPE in the instrumentation which swallows the original exception eventually.

Fixes: #662

…le creating it then hikari will return null) when instrumenting it after creation
@SimunKaracic SimunKaracic merged commit 56ac227 into kamon-io:master Oct 2, 2020
@SimunKaracic
Copy link
Contributor

Thanks for the contribution 🎉 👍

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.

Hikari pool instrumentation causes NPE when connection fails, effectively hiding the real exception
2 participants