Skip to content

Commit fc8d92e

Browse files
authoredAug 17, 2024··
Merge pull request #1773 from ClickHouse/pre_0.6.4
Pre 0.6.4 Updates
2 parents 5609c18 + 047c8ac commit fc8d92e

File tree

9 files changed

+62
-11
lines changed

9 files changed

+62
-11
lines changed
 

‎.github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
CHC_BRANCH: "main"
15-
CHC_VERSION: "0.6.3"
15+
CHC_VERSION: "0.6.4"
1616

1717
jobs:
1818
nightly:

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
version:
77
description: "Release version"
88
required: true
9-
default: "0.6.3-SNAPSHOT"
9+
default: "0.6.4-SNAPSHOT"
1010

1111
jobs:
1212
release:

‎CHANGELOG.md

+51
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
## Latest
22

3+
## 0.6.4
4+
5+
### Deprecations
6+
- Following components will be deprecated and archived in next release:
7+
- clickhouse-cli-client
8+
- clickhouse-grpc-client
9+
- No more builds for non-lts Java versions - no more Java 9 release builds.
10+
- Lowest supported Java version will be 11.
11+
- Java 11 support will be ended before the end of 2023.
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)
17+
18+
### New Features
19+
- [Client-V1/Apache HTTP] More configuration parameters for connection management. Useful for tuning performance.
20+
(https://github.com/ClickHouse/clickhouse-java/pull/1771)
21+
- com.clickhouse.client.config.ClickHouseClientOption#CONNECTION_TTL - to configure connection time-to-live
22+
- com.clickhouse.client.http.config.ClickHouseHttpOption#KEEP_ALIVE_TIMEOUT - to configure keep-alive timeout
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.
27+
- Additionally switched to using LAX connection pool for Apache Connection Manager to improve performance
28+
for concurrent requests.
29+
- [Client-V2] Connection pool configuration https://github.com/ClickHouse/clickhouse-java/pull/1766
30+
- com.clickhouse.client.api.Client.Builder.setConnectionRequestTimeout - to configure connection request timeout.
31+
Important when there are no connections available in the pool to fail fast.
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.
34+
- com.clickhouse.client.api.Client.Builder.setConnectionTTL - to limit connection live ignoring keep-alive from server.
35+
- com.clickhouse.client.api.Client.Builder.setConnectionReuseStrategy - to configure how connections are used.
36+
Select FIFO to reuse connections evenly or LIFO (default) to reuse the most recently active connections.
37+
- [Client-V2] All operations are now executed in calling thread to avoid extra threads creation.
38+
Async operations can be enabled by `com.clickhouse.client.api.Client.Builder.useAsyncRequests` (https://github.com/ClickHouse/clickhouse-java/pull/1767)
39+
- [Client-V2] Content and HTTP native compression is supported now Currently only LZ4 is available. (https://github.com/ClickHouse/clickhouse-java/pull/1761)
40+
- [Client-V2] HTTPS support added. Required to communicate with ClickHouse Cloud Services.
41+
Client certificates are supported, too. (https://github.com/ClickHouse/clickhouse-java/pull/1753)
42+
- [Client-V2] Added support for HTTP proxy (https://github.com/ClickHouse/clickhouse-java/pull/1748)
43+
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+
49+
### Bug Fixes
50+
- [Client-V2] Data is read fully from a stream. Important for Cloud instances (https://github.com/ClickHouse/clickhouse-java/pull/1759)
51+
- [Client-V2] Timezone from a server response is now used to parse DateTime values (https://github.com/ClickHouse/clickhouse-java/pull/1763)
52+
- [Client-V1] Timezone from a server response is now used to parse DateTime values (https://github.com/ClickHouse/clickhouse-java/issues/1464)
53+
354
## 0.6.3
455

556
### Important Changes

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

+2-2
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"}.

‎examples/client-v2/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6565
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6666

67-
<clickhouse-java.version>0.6.3-SNAPSHOT</clickhouse-java.version>
67+
<clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>
6868
<apache-httpclient.version>5.2.1</apache-httpclient.version>
6969

7070
<compiler-plugin.version>3.8.1</compiler-plugin.version>

‎examples/client/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6767
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6868

69-
<clickhouse-java.version>0.6.3-SNAPSHOT</clickhouse-java.version>
69+
<clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>
7070
<!-- Nightly snapshot version from https://s01.oss.sonatype.org/content/repositories/snapshots/ or latest from local -->
71-
<!-- <clickhouse-java.version>0.6.3-SNAPSHOT</clickhouse-java.version>-->
71+
<!-- <clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>-->
7272

7373
<apache-httpclient.version>5.2.1</apache-httpclient.version>
7474

‎examples/demo-service/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ dependencies {
2929

3030
// -- clickhouse dependencies
3131
// Main dependency
32-
implementation("com.clickhouse:client-v2:0.6.3-SNAPSHOT") // nightly build
33-
// implementation("com.clickhouse:client-v2:0.6.3") // stable version
32+
implementation("com.clickhouse:client-v2:0.6.4-SNAPSHOT") // nightly build
33+
// implementation("com.clickhouse:client-v2:0.6.4") // stable version
3434
// http client used by clickhouse client
3535
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
3636
// compression dependencies

‎examples/jdbc/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6767
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6868

69-
<clickhouse-java.version>0.6.3-SNAPSHOT</clickhouse-java.version>
69+
<clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>
7070
<hikaricp.version>4.0.3</hikaricp.version>
7171
<apache-httpclient.version>5.2.1</apache-httpclient.version>
7272

‎pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</distributionManagement>
8686

8787
<properties>
88-
<revision>0.6.3-SNAPSHOT</revision>
88+
<revision>0.6.4-SNAPSHOT</revision>
8989
<project.current.year>2024</project.current.year>
9090
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9191
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

0 commit comments

Comments
 (0)