Repository navigation
Make 05110 and 05112 independent of the shared S3 connection pool - #124776
Conversation
Both tests asserted `DiskConnectionsReused >= 18` for one sequential read of a 21-column Wide part. The connection pool is keyed on the endpoint and every test S3 disk is `localhost:11111`, so the counter measured a pool shared with every concurrent test: in the failed 05110 run all 42 connections were returned (Preserved 42, Reset 0), yet neighbours took them and the query created 26 and reused 16. The same counters also pass with each test's own fix reverted, because the test's INSERT leaves idle connections in the pool (05110: Created 0 / Reused 42; 05112: Reused 21). Assert each bug's own per-query effect instead: - 05112: `DiskConnectionsReset <= 2`. Without the view's right bound every file read is open-ended, the response is never read to the end and the connection is reset instead of returned. - 05110, now a `.sh` test: count the TEST-level `Read S3 object ... Range: a-b` lines of the SELECT. Without the right bound at the object end the data file requests have no range end and log no such line. Negative controls on a debug build (local MinIO): with the gather fix reverted the new 05110 fails 10/10 back-to-back on a warm pool (0 ranged requests vs 21, connection counters identical to the fixed build); with the view bound removed the new 05112 fails 10/10 (Reset 21 vs 0). The fixed build passes both in 50 sequential, 50 `-j 16` and 30 runs under a 16-way S3 load. CI failures: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=6101ac5e7d4976004fc00948f42677b22f3f40fc&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_tsan%2C%20s3%20storage%2C%20parallel%2C%202%2F3%29 https://github.com/ClickHouse/ClickHouse/actions/runs/36682278835/job/109784920371 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=123673&sha=b0678011a1bdfaf285150128113a0ffd0e8097b5&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20AsyncInsert%2C%20s3%20storage%2C%20parallel%29 Related: ClickHouse#118480, ClickHouse#118483 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check the client's status before counting the ranged requests, so a query that sends its reads and then throws no longer passes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand)
|
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261008-212200 |
|
Workflow [PR], commit [91d8356] Summary: ✅ AI ReviewSummaryThe PR replaces shared S3 connection-pool reuse assertions with checks of bounded requests in The previous inline finding was a false positive and has been resolved. A failed Final VerdictStatus: ✅ Approve |
CI finish ledger - 208cb98Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
All check runs completed. Session id: cron:our-pr-ci-monitor:20261009-073003 |
|
Fixing PR for |
|
Fixing PR for |
…per-query-oracles Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cked archive member `ReadBufferFromFileView` never told the buffer under it where a packed archive member ends, so every member read on an object storage disk was an open-ended `GET`: a merge of a 2,400-column table reset ~8,100 connections. The view now passes its right bound down. `05112` asserts `DiskConnectionsReset <= 2` instead of a reuse count of the shared S3 connection pool. Upstream: ClickHouse#118483 (merge commit dc740cb) Upstream: ClickHouse#124776 (merge commit 9e2445a), only its `05112` part: `05110` tests ClickHouse#118480, which is not on this branch. Signed-off-by: Mikhail Filimonov <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05110_s3_connection_reuse_many_streamsand05112_s3_packed_part_connection_reusefail ons3 storagelanes: 05110, master, 05112, master, 05112, PR.Both assert
DiskConnectionsReused >= 18. The connection pool is keyed on the endpoint, and every test S3 disk islocalhost:11111, so the pool is shared with every concurrent test. In the failed 05110 run all 42 connections went back to the pool (DiskConnectionsPreserved42,Reset0), but neighbours took them:Created26,Reused16. The same counters also pass with each test's fix reverted, because the test's ownINSERTleaves idle connections in the pool (05110:Created0 /Reused42; 05112:Reused21).Each test now checks what its own bug changes in this query:
DiskConnectionsReset <= 2. Without the view's right bound, every file read is open-ended and its connection is reset..sh): at least 20Read S3 object ... Range: a-blines atsend_logs_level = 'test'. Without the right bound at the end of the object, the data file requests are sent without a range end and log nothing.Validation on a debug build with a local MinIO: with the fix reverted (#118480, #118483), the new 05110 fails 10/10 back-to-back on a warm pool (0 ranged requests, connection counters identical to the fixed build) and the new 05112 fails 10/10 (
Reset21). On the fixed build both pass 50 sequential + 50-j 16runs and 30 runs under a 16-way S3 load (21 ranged requests,Reset0 in every run).Related: #118480
Related: #118483
Workflow [PR]
Sync PR [sync-upstream/pr/124776]
Version info
26.11.1.1107-master(included in26.11and later)