Important Changes
- [Client-V1] Changed how
User-Agentstring is generated. NowClickHouse-JavaClientportion is appended in all cases.
It is still possible to set custom product name that will be the first part inUser-Agentvalue.
(#1698)
New Features
- [Client-V1/Apache HTTP] Retry on NoHttpResponseException in Apache HTTP client.
Should be used with causes because it is not always possible to resend request body.
Behaviour is controlled bycom.clickhouse.client.http.config.ClickHouseHttpOption#AHC_RETRY_ON_FAILURE.
Works only for Apache HTTP client because based on its specific behavior(#1721) - [Client-V1/Apache HTTP] Connection validation before sending request.
Behaviour is controlled bycom.clickhouse.client.http.config.ClickHouseHttpOption#AHC_VALIDATE_AFTER_INACTIVITY.
By default, connection is validated after being in the pool for 5 seconds. (#1722)
Bug Fixes
- [Client-V2] Fix making it possible to pass URL starting with "https://" for secure endpoints (#1718)
- [Client-V2] Fix minimizes number of threads used by the client. It reduces resource usage significantly. (#1691)
- [Client-V1] Fix slowness ( > 1 min) caused by incorrect localhost IP determination while initialization of the client (#1729)
- [Client-V2] Make client instance closeable to free underlying resource (#1733)