INSERT query fails occasionally due to issue with ClientStatistics tracking. This is when using the V2 Client.
This issue happened only a few times while we are executing INSERT for many events in production. It seems (but not with total certianty) to only happen at the start of a long-running process, like when starting up an application for the first time, or if the application was idle for some time.
Cannot invoke "com.clickhouse.client.api.internal.ClientStatisticsHolder.start(com.clickhouse.client.api.metrics.ClientMetrics)" because "clientStats" is null
and
Cannot invoke "com.clickhouse.client.api.internal.ClientStatisticsHolder.stop(com.clickhouse.client.api.metrics.ClientMetrics)" because the return value of "java.util.Map.get(Object)" is null
Configuration
Environment
Client version: 0.6.5
Language version: 21.0.2
OS: debian
ClickHouse server
ClickHouse Server version: 24.6.
We only see this on one production instance running 24.6. The other instances are running 24.5 and don't have this issue.
Describe the bug
INSERT
query fails occasionally due to issue with ClientStatistics tracking. This is when using the V2 Client.This issue happened only a few times while we are executing INSERT for many events in production. It seems (but not with total certianty) to only happen at the start of a long-running process, like when starting up an application for the first time, or if the application was idle for some time.
Steps to reproduce
Expected behaviour
Insert succeeds.
Code example
Error log
and
Configuration
Environment
ClickHouse server
We only see this on one production instance running 24.6. The other instances are running 24.5 and don't have this issue.