Skip to content

Commit 60b8ca8

Browse files
authored
Merge pull request #1171 from zhicwu/develop
Enhance Apache HTTP client
2 parents a74d761 + 007328a commit 60b8ca8

File tree

14 files changed

+905
-742
lines changed

14 files changed

+905
-742
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
- name: Install JDK 8 and Maven
4848
uses: actions/setup-java@v3
4949
with:
50-
distribution: 'temurin'
50+
distribution: "temurin"
5151
java-version: 8
52-
cache: 'maven'
52+
cache: "maven"
5353
- name: Build and install libraries
5454
run: mvn --batch-mode --show-version --strict-checksums --threads C1 -Dmaven.wagon.rto=30000 -DskipITs install
5555
- name: Compile examples
@@ -71,9 +71,9 @@ jobs:
7171
- name: Install JDK 8 and Maven
7272
uses: actions/setup-java@v3
7373
with:
74-
distribution: 'temurin'
74+
distribution: "temurin"
7575
java-version: 8
76-
cache: 'maven'
76+
cache: "maven"
7777
- name: Install ClickHouse native command line
7878
run: |
7979
sudo apt-get update \
@@ -115,11 +115,11 @@ jobs:
115115
- name: Install JDK 8 and Maven
116116
uses: actions/setup-java@v3
117117
with:
118-
distribution: 'temurin'
118+
distribution: "temurin"
119119
java-version: |
120120
8
121121
11
122-
cache: 'maven'
122+
cache: "maven"
123123
- name: Setup Toolchain
124124
shell: bash
125125
run: |
@@ -156,8 +156,8 @@ jobs:
156156
strategy:
157157
matrix:
158158
clickhouse: ["21.8", "22.3", "22.8", "latest"]
159-
# http2 here represents http protocol + JDK HttpClient(http_connection_provider=HTTP_CLIENT)
160-
protocol: ["http", "http2", "grpc"]
159+
# here http, http_client and apache_http_client represent different value of http_connection_provider
160+
protocol: ["http", "http_client", "apache_http_client", "grpc"]
161161
exclude:
162162
- clickhouse: "21.8"
163163
protocol: grpc
@@ -175,11 +175,11 @@ jobs:
175175
- name: Install JDK 8 and Maven
176176
uses: actions/setup-java@v3
177177
with:
178-
distribution: 'temurin'
178+
distribution: "temurin"
179179
java-version: |
180180
8
181181
11
182-
cache: 'maven'
182+
cache: "maven"
183183
- name: Setup Toolchain
184184
shell: bash
185185
run: |
@@ -218,7 +218,7 @@ jobs:
218218
strategy:
219219
matrix:
220220
clickhouse: ["21.8", "22.3", "22.8", "latest"]
221-
# grpc is not fully supported, and http2 does not work in CI environment(due to limited threads?)
221+
# grpc is not fully supported, and http_client and apache_http_client do not work in CI environment(due to limited threads?)
222222
protocol: ["http"]
223223
r2dbc: ["1.0.0.RELEASE", "0.9.1.RELEASE"]
224224
fail-fast: false
@@ -235,11 +235,11 @@ jobs:
235235
- name: Install JDK 8 and Maven
236236
uses: actions/setup-java@v3
237237
with:
238-
distribution: 'temurin'
238+
distribution: "temurin"
239239
java-version: |
240240
8
241241
11
242-
cache: 'maven'
242+
cache: "maven"
243243
- name: Setup Toolchain
244244
shell: bash
245245
run: |
@@ -278,8 +278,22 @@ jobs:
278278
needs: compile
279279
strategy:
280280
matrix:
281-
serverTz: ["Asia/Chongqing", "America/Los_Angeles", "Etc/UTC", "Europe/Berlin", "Europe/Moscow"]
282-
clientTz: ["Asia/Chongqing", "America/Los_Angeles", "Etc/UTC", "Europe/Berlin", "Europe/Moscow"]
281+
serverTz:
282+
[
283+
"Asia/Chongqing",
284+
"America/Los_Angeles",
285+
"Etc/UTC",
286+
"Europe/Berlin",
287+
"Europe/Moscow",
288+
]
289+
clientTz:
290+
[
291+
"Asia/Chongqing",
292+
"America/Los_Angeles",
293+
"Etc/UTC",
294+
"Europe/Berlin",
295+
"Europe/Moscow",
296+
]
283297
fail-fast: false
284298
timeout-minutes: 20
285299
name: "TimeZone(C/S): ${{ matrix.clientTz }} vs. ${{ matrix.serverTz }}"
@@ -294,9 +308,9 @@ jobs:
294308
- name: Install JDK 8 and Maven
295309
uses: actions/setup-java@v3
296310
with:
297-
distribution: 'temurin'
311+
distribution: "temurin"
298312
java-version: 8
299-
cache: 'maven'
313+
cache: "maven"
300314
- name: Install Java client
301315
run: mvn --also-make --batch-mode --projects clickhouse-cli-client,clickhouse-grpc-client,clickhouse-http-client -DskipTests install
302316
- name: Test JDBC and R2DBC drivers

0 commit comments

Comments
 (0)