Repository navigation
Conversation
The client-v2 job took 19:56 of its 20 minutes in run 47141300065. Refs #3514
On ClickHouse Cloud each request can go to another replica, and that replica can answer before it has the rows that the test just inserted: jdbc-v2 JdbcDataTypeTests and WriterStatementImplTest, client-v2 ParameterizedQueryTest and DataTypeTests fail with an empty result, different tests in each run. Set select_sequential_consistency=1 on Cloud, as the v1 tests and the clickhouse-js Cloud tests do: in JdbcIntegrationTest.getJdbcConnection and in the client builders of QueryTests, ParameterizedQueryTest and DataTypeTests. Nothing changes outside Cloud. Refs #3514
…the server The test expected precise float parsing from server 26.7, the version that turns precise_float_parsing on by default. The Cloud test service has it off, so Float32 max reads back as 3.4028233E38. Ask the server for the setting instead. Refs #3514
The Cloud test service doesn't have replica-aware routing enabled, so X-ClickHouse-Replica-Tag doesn't pin requests to one replica there. The test still runs against the cluster environment, where nginx routes by the tag. Refs #3514
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit faefbf6. Configure here.
| private Client.Builder newClient() { | ||
| ClickHouseNode node = getServer(ClickHouseProtocol.HTTP); | ||
| return new Client.Builder() | ||
| Client.Builder builder = new Client.Builder() |
There was a problem hiding this comment.
DataTypeTests client misses Cloud setting
Medium Severity
readYourWritesSettings is applied only in newClient, but setUp builds the shared client with a separate Client.Builder and never calls that helper. Most DataTypeTests methods, including insert-then-select helpers like writeReadVerify, use that setUp client, so Cloud replica lag can still hide rows written by the previous request.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit faefbf6. Configure here.
There was a problem hiding this comment.
Fixed in ac5f565: setUp now builds the shared client with newClient(), so it gets readYourWritesSettings() too.
AI review gate — Draft pull request — AI review not started
What to do:
Re-run the gate with “Re-run jobs” after an approval or a finished review. A push re-runs it automatically. |
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
setUp built the shared client with its own builder, without readYourWritesSettings(), so most DataTypeTests read without select_sequential_consistency on Cloud. Build it with newClient(), which now takes the user from the test environment as setUp did. Refs #3514


Closes #3514
One commit per fix:
cloud.ymljob timeout 20 → 30 minutes (client-v2 took 19:56).select_sequential_consistency=1inJdbcIntegrationTest.getJdbcConnectionand in the client builders ofQueryTests,ParameterizedQueryTestandDataTypeTests, so a query sees the rows inserted by the previous request (as the v1 and clickhouse-js Cloud tests do). No change outside Cloud.testFloatDataTypesasks the server forprecise_float_parsinginstead of assuming it from the version. Reproduced locally withprecise_float_parsing=0: the old test fails with Cloud'sexpected [3.4028235E38] but found [3.4028233E38], the new one passes.testStickyReplicaon Cloud, where replica-aware routing isn't enabled on the test service.Not changed:
testGetDatabaseMinorVersionand the system-tables case oftestShowStatementsReturnSameMetadataAsSystemTablesfail because the Cloud replicas currently run two server versions (26.8 and 26.10).Local runs (Docker, no Cloud): client-v2
QueryTests,ParameterizedQueryTest,DataTypeTests,HttpTransportTests398/0 failures; jdbc-v2JdbcDataTypeTests,WriterStatementImplTest,DetachedResultSetTestpass except two date tests that also fail onmainin a CET time zone.🤖 Generated with Claude Code
Note
Low Risk
Changes are limited to CI timeouts and test-only Cloud workarounds; no production library behavior is modified.
Overview
Fixes scheduled Cloud Tests failures by aligning CI timeouts and making integration tests tolerate ClickHouse Cloud’s multi-replica behavior and server settings.
CI: Raises
cloud.ymljob timeout from 20 to 30 minutes (client-v2 was nearing the limit) and updates the related comment incloud-cleanup.yml.Cloud read-your-writes: Adds
BaseIntegrationTest.readYourWritesSettings()(select_sequential_consistency=1on Cloud only) and wires it into client-v2 test builders andJdbcIntegrationTestconnections so reads see prior inserts across replicas.Targeted test fixes:
testFloatDataTypesreadsprecise_float_parsingfrom the server instead of inferring from version (Cloud has it disabled).testStickyReplicais skipped on Cloud where replica-aware routing is off.Reviewed by Cursor Bugbot for commit faefbf6. Bugbot is set up for automated code reviews on this repo. Configure here.