Skip to content

[client-v2] Request cancellation#2903

Draft
chernser wants to merge 14 commits into
mainfrom
06/26/26/cancel_http_request
Draft

[client-v2] Request cancellation#2903
chernser wants to merge 14 commits into
mainfrom
06/26/26/cancel_http_request

Updated migration guide with status code handling

1ed667d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 6, 2026 in 1m 3s

Annotations

Check failure on line 671 in client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IRC5Nw8n4QoYsl8&open=AZ851IRC5Nw8n4QoYsl8&pullRequest=2912

Check warning on line 2775 in client-v2/src/test/java/com/clickhouse/client/HttpTransportTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IQt5Nw8n4QoYsl5&open=AZ851IQt5Nw8n4QoYsl5&pullRequest=2912

Check warning on line 293 in client-v2/src/test/java/com/clickhouse/client/api/transport/TransportBaseTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the parentheses around the "client" parameter

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IPf5Nw8n4QoYslr&open=AZ851IPf5Nw8n4QoYslr&pullRequest=2912

Check warning on line 15 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYslv&open=AZ851IP55Nw8n4QoYslv&pullRequest=2912

Check warning on line 24 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYslz&open=AZ851IP55Nw8n4QoYslz&pullRequest=2912

Check warning on line 40 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYsl3&open=AZ851IP55Nw8n4QoYsl3&pullRequest=2912

Check warning on line 661 in client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IRC5Nw8n4QoYsl7&open=AZ851IRC5Nw8n4QoYsl7&pullRequest=2912

Check warning on line 2806 in client-v2/src/test/java/com/clickhouse/client/HttpTransportTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IQt5Nw8n4QoYsl6&open=AZ851IQt5Nw8n4QoYsl6&pullRequest=2912

Check warning on line 23 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYsly&open=AZ851IP55Nw8n4QoYsly&pullRequest=2912

Check warning on line 29 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYsl0&open=AZ851IP55Nw8n4QoYsl0&pullRequest=2912

Check warning on line 34 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYsl2&open=AZ851IP55Nw8n4QoYsl2&pullRequest=2912

Check warning on line 301 in client-v2/src/test/java/com/clickhouse/client/api/transport/TransportBaseTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the parentheses around the "client" parameter

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IPf5Nw8n4QoYsls&open=AZ851IPf5Nw8n4QoYsls&pullRequest=2912

Check warning on line 30 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYsl1&open=AZ851IP55Nw8n4QoYsl1&pullRequest=2912

Check warning on line 560 in client-v2/src/test/java/com/clickhouse/client/api/transport/TransportBaseTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IPf5Nw8n4QoYslt&open=AZ851IPf5Nw8n4QoYslt&pullRequest=2912

Check warning on line 2118 in client-v2/src/test/java/com/clickhouse/client/HttpTransportTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IQt5Nw8n4QoYsl4&open=AZ851IQt5Nw8n4QoYsl4&pullRequest=2912

Check warning on line 17 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYslw&open=AZ851IP55Nw8n4QoYslw&pullRequest=2912

Check warning on line 589 in client-v2/src/test/java/com/clickhouse/client/api/transport/TransportBaseTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IPf5Nw8n4QoYslu&open=AZ851IPf5Nw8n4QoYslu&pullRequest=2912

Check warning on line 287 in client-v2/src/test/java/com/clickhouse/client/api/transport/TransportBaseTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the parentheses around the "client" parameter

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IPf5Nw8n4QoYslq&open=AZ851IPf5Nw8n4QoYslq&pullRequest=2912

Check warning on line 18 in client-v2/src/test/java/com/clickhouse/client/api/internal/ClientUtilsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "doThrow".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ851IP55Nw8n4QoYslx&open=AZ851IP55Nw8n4QoYslx&pullRequest=2912