java-spring-jaeger
java-spring-jaeger copied to clipboard
"PoolInitializationException: Failed to initialize pool: Timer already cancelled" for Oracle
Dependency update from opentracing-spring-jaeger-cloud-starter:3.0.0 to opentracing-spring-jaeger-cloud-starter:3.1.0 or 3.1.1 results in the following error for Oracle data sources from /actuator/health endpoint:
"DataSource health check failed com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Timer already cancelled.
[90 skipped]
Caused by: java.lang.IllegalStateException: Timer already cancelled.
at java.base/java.util.Timer.sched(Timer.java:398) ~[na:na]
at java.base/java.util.Timer.schedule(Timer.java:194) ~[na:na]
at oracle.net.nt.TimeoutInterruptHandler.scheduleInterrupt(TimeoutInterruptHandler.java:90) ~[ojdbc8-19.3.0.0.jar:19.3.0.0.0]
at oracle.net.nt.TimeoutInterruptHandler.scheduleInterrupt(TimeoutInterruptHandler.java:103) ~[ojdbc8-19.3.0.0.jar:19.3.0.0.0]
at oracle.net.nt.TimeoutSocketChannel.scheduleInterrupt(TimeoutSocketChannel.java:235) ~[ojdbc8-19.3.0.0.jar:19.3.0.0.0]
at oracle.net.nt.TimeoutSocketChannel.connect(TimeoutSocketChannel.java:97) ~[ojdbc8-19.3.0.0.jar:19.3.0.0.0]
at oracle.net.nt.TimeoutSocketChannel.
Would you be able to provide a reproducer?
Thanks
@geoand I have similar issue with Oracle JDBC driver + Hikari Pool and Jdbc opentracing. I have created reproducer repo https://github.com/ash1425/opentracing-jdbc-issue-reproduce
Any updates? I have the same issue on 3.1.2
The same problem here. Tested on 3.2.2 and still no luck. Fixing this would be highly appreciated.
@geoand It would be great if you could look at it. Please use the reproducer code I created at https://github.com/ash1425/opentracing-jdbc-issue-reproduce.git
Thanks for the reproducer.
Unfortunately at this moment I am very pressed for time... Hopefully I'll take a look soon.
This was fixed by https://github.com/opentracing-contrib/java-jdbc/issues/73 and is available in version 0.2.11 of opentracing-jdbc. I have tested it with 3.1.1 of this project and it should also work fine with 3.1.2-SNAPSHOT.
This should resolve this issue:
implementation('io.opentracing.contrib:opentracing-jdbc') { version { strictly '0.2.11' } }
I can confirm above solution works. Issue can be closed.