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

[JDBC Smart Driver] Connection count not found for a host when closing its connection #13692

Closed
ashetkar opened this issue Aug 19, 2022 · 0 comments
Assignees
Labels
area/ecosystem Label for all ecosystem related projects kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@ashetkar
Copy link
Contributor

ashetkar commented Aug 19, 2022

Jira Link: DB-3237

Description

From @ssherwood:
Also, I'm seeing this periodically in my logs after stopping the master leader:

2022-08-18 22:10:46.159 DEBUG 216146 --- [nnection closer] com.zaxxer.hikari.pool.PoolBase          : HikariPool-1 - Closing connection com.yugabyte.jdbc.PgConnection@1f2adb96 failed

java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "currentCount" is null
	at com.yugabyte.ysql.ClusterAwareLoadBalancer.updateConnectionMap(ClusterAwareLoadBalancer.java:256) ~[jdbc-yugabytedb-42.3.5-yb-1.jar!/:42.3.5-yb-1]
	at com.yugabyte.jdbc.PgConnection.close(PgConnection.java:775) ~[jdbc-yugabytedb-42.3.5-yb-1.jar!/:42.3.5-yb-1]
	at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:137) ~[HikariCP-5.0.1.jar!/:na]
	at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:444) ~[HikariCP-5.0.1.jar!/:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
@ashetkar ashetkar added kind/bug This issue is a bug area/ecosystem Label for all ecosystem related projects status/awaiting-triage Issue awaiting triage labels Aug 19, 2022
@yugabyte-ci yugabyte-ci added the priority/medium Medium priority issue label Aug 19, 2022
@ashetkar ashetkar self-assigned this Jan 2, 2023
@yugabyte-ci yugabyte-ci removed the status/awaiting-triage Issue awaiting triage label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ecosystem Label for all ecosystem related projects kind/bug This issue is a bug priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

2 participants