Skip to content

Commit 047c8ac

Browse files
committed
updated changelog and javadoc
1 parent 85b4cec commit 047c8ac

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,43 @@
99
- No more builds for non-lts Java versions - no more Java 9 release builds.
1010
- Lowest supported Java version will be 11.
1111
- Java 11 support will be ended before the end of 2023.
12-
- It is recommended to use Java 21.
12+
- It is recommended to use Java 21.
13+
14+
### Important Changes
15+
- [Client-V1] Fix for handling DateTime without timezone when `session_timezone` is set. Now server timezone
16+
is parsed from server response when present (https://github.com/ClickHouse/clickhouse-java/issues/1464)
1317

1418
### New Features
1519
- [Client-V1/Apache HTTP] More configuration parameters for connection management. Useful for tuning performance.
1620
(https://github.com/ClickHouse/clickhouse-java/pull/1771)
1721
- com.clickhouse.client.config.ClickHouseClientOption#CONNECTION_TTL - to configure connection time-to-live
1822
- com.clickhouse.client.http.config.ClickHouseHttpOption#KEEP_ALIVE_TIMEOUT - to configure keep-alive timeout
19-
- com.clickhouse.client.http.config.ClickHouseHttpOption#CONNECTION_REUSE_STRATEGY - to configure how connection
20-
are resued in the connection pool.
23+
- com.clickhouse.client.http.config.ClickHouseHttpOption#CONNECTION_REUSE_STRATEGY - defines how connection pool behaves.
24+
If `FIFO` is selected then connections are reused in the order they were created. It results in even distribution of connections.
25+
If `LIFO` is selected then connections are reused as soon they are returned to the pool.
26+
Note: only for `APACHE_HTTP_CLIENT` connection provider.
2127
- Additionally switched to using LAX connection pool for Apache Connection Manager to improve performance
2228
for concurrent requests.
2329
- [Client-V2] Connection pool configuration https://github.com/ClickHouse/clickhouse-java/pull/1766
2430
- com.clickhouse.client.api.Client.Builder.setConnectionRequestTimeout - to configure connection request timeout.
2531
Important when there are no connections available in the pool to fail fast.
26-
- com.clickhouse.client.api.Client.Builder.setMaxConnections - total max connections per route.
32+
- com.clickhouse.client.api.Client.Builder.setMaxConnections - configures how soft limit of connections per host.
33+
Note: Total number of connections is unlimited because in most cases there is one host.
2734
- com.clickhouse.client.api.Client.Builder.setConnectionTTL - to limit connection live ignoring keep-alive from server.
2835
- com.clickhouse.client.api.Client.Builder.setConnectionReuseStrategy - to configure how connections are used.
2936
Select FIFO to reuse connections evenly or LIFO (default) to reuse the most recently active connections.
3037
- [Client-V2] All operations are now executed in calling thread to avoid extra threads creation.
3138
Async operations can be enabled by `com.clickhouse.client.api.Client.Builder.useAsyncRequests` (https://github.com/ClickHouse/clickhouse-java/pull/1767)
32-
- [Client-V2] Spring Demo Service as usage example (https://github.com/ClickHouse/clickhouse-java/pull/1765)
33-
- [Client-V2] More examples for using text based formats (https://github.com/ClickHouse/clickhouse-java/pull/1752)
3439
- [Client-V2] Content and HTTP native compression is supported now Currently only LZ4 is available. (https://github.com/ClickHouse/clickhouse-java/pull/1761)
3540
- [Client-V2] HTTPS support added. Required to communicate with ClickHouse Cloud Services.
3641
Client certificates are supported, too. (https://github.com/ClickHouse/clickhouse-java/pull/1753)
3742
- [Client-V2] Added support for HTTP proxy (https://github.com/ClickHouse/clickhouse-java/pull/1748)
3843

44+
### Documentation
45+
- [Client-V2] Spring Demo Service as usage example (https://github.com/ClickHouse/clickhouse-java/pull/1765)
46+
- [Client-V2] Examples for using text based formats (https://github.com/ClickHouse/clickhouse-java/pull/1752)
47+
48+
3949
### Bug Fixes
4050
- [Client-V2] Data is read fully from a stream. Important for Cloud instances (https://github.com/ClickHouse/clickhouse-java/pull/1759)
4151
- [Client-V2] Timezone from a server response is now used to parse DateTime values (https://github.com/ClickHouse/clickhouse-java/pull/1763)

clickhouse-http-client/src/main/java/com/clickhouse/client/http/config/ClickHouseHttpOption.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
7676
"The time in milliseconds after which the connection is validated after inactivity."),
7777

7878
/**
79-
* Whether to retry on failure with AsyncHttpClient. Failure includes some 'critical' IO exceptions:
79+
* Whether to retry on failure with Apache HTTP Client. Failure includes some 'critical' IO exceptions:
8080
* <ul>
8181
* <li>{@code org.apache.hc.core5.http.ConnectionClosedException}</li>
8282
* <li>{@code org.apache.hc.core5.http.NoHttpResponseException}</li>
@@ -90,7 +90,7 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
9090
AHC_RETRY_ON_FAILURE("ahc_retry_on_failure", false, "Whether to retry on failure with AsyncHttpClient."),
9191

9292
/**
93-
* Configuration for AsyncHttpClient connection pool. It defines how to reuse connections.
93+
* Configuration for Apache HTTP Client connection pool. It defines how to reuse connections.
9494
* If {@code "FIFO"} is set, the connections are reused in the order they were created.
9595
* If {@code "LIFO"} is set, the connections are reused as soon they are available.
9696
* Default value is {@code "LIFO"}.

0 commit comments

Comments
 (0)