Skip to content

Fix CachedOnDiskReadBufferFromFile::readBigAt - #97890

Merged
kssenii merged 6 commits into
masterfrom
fix-cached-buffer-read-big-at
Feb 26, 2026
Merged

kssenii merged 6 commits into
masterfrom
fix-cached-buffer-read-big-at

Conversation

@kssenii

@kssenii kssenii commented Feb 24, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix exception from CachedOnDiskReadBufferFromFile::readBigAt. Closes #97325

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.3.1.85
  • Backported to: 26.2.1.1127

@clickhouse-gh

clickhouse-gh Bot commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [20e57d0]

Summary: ❌

job_name test_name status info comment
Stress test (amd_debug) failure
Logical error: Unexpected return type from A. Expected B. Got C. Action: (STID: 1611-3d1e) FAIL cidb, issue ISSUE EXISTS
BuzzHouse (amd_debug) failure
Logical error: Bad cast from type A to B (STID: 1499-6865) FAIL cidb, issue ISSUE CREATED

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Feb 24, 2026
@kssenii
kssenii force-pushed the fix-cached-buffer-read-big-at branch from e444306 to 2be49cd Compare February 26, 2026 11:02
@kssenii
kssenii requested a review from antonio2368 February 26, 2026 14:16
@kssenii
kssenii enabled auto-merge February 26, 2026 19:22
@kssenii
kssenii added this pull request to the merge queue Feb 26, 2026
Merged via the queue into master with commit ab8ca2b Feb 26, 2026
142 of 144 checks passed
@kssenii
kssenii deleted the fix-cached-buffer-read-big-at branch February 26, 2026 20:49
@robot-ch-test-poll1 robot-ch-test-poll1 added pr-synced-to-cloud The PR is synced to the cloud repo pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Feb 26, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 26, 2026
alexey-milovidov added a commit that referenced this pull request Feb 27, 2026
Backport #97890 to 26.2: Fix CachedOnDiskReadBufferFromFile::readBigAt
fm4v added a commit that referenced this pull request Jul 10, 2026
- `03008_deduplication_*` (6 files, 96-163s): replace the 64-combination
  cross-product with a 16-case covering design - the expected-value
  oracle depends only on `insert_unique_blocks`,
  `deduplicate_src_table` and `deduplicate_dst_table`, while
  `insert_method`/`use_insert_token`/`single_thread` only change how
  the insert is issued (see 602b128); merge the per-phase debug
  dumps into one UNION ALL query; reduce insert sizes from 10/8 to 4
  rows while keeping all value branches and multi-block inserts.
  Non-replicated references regenerated against a live server.

- `03988_cached_read_big_at` (344s): rewrite from streaming the public
  14 GB `hits.parquet` single-threaded to a ~13 MiB synthetic Parquet
  file on the local S3 endpoint, following
  `03723_parquet_prefetcher_read_big_at`. Row groups are several times
  the 1 MiB cache segment size, so `readBigAt` still crosses segment
  boundaries in both cold and warm reads (the regression of #97325 /
  #97890), now verified deterministically via ProfileEvents instead of
  depending on the public dataset layout. Drops `stateful` and `long`.

- `01747_system_session_log_long` (129s): run the 3 profile/role
  variants only for `plaintext_password` (the reference never asserts
  profile/role columns, so the dimension is orthogonal to auth type),
  run the remaining 7 case blocks in parallel with per-case temp files
  keeping output deterministic, drop a dead `SET log_comment` call and
  the duplicated wrong-credential checks in the named-session case.

- `02241_filesystem_cache_on_write_operations` (108s): shrink the big
  insert from 5M to 2.1M rows - still multiple insert blocks/parts, so
  the 'writes never trigger remote reads' invariant keeps its
  multi-part coverage; reference counts recomputed exactly. Tighten the
  cache-drop poll in `cache.lib` from 1s to 0.2s.

- `01154_move_partition_long` (107s): throttle the insert threads and
  use fixed 500-row batches so the 40s chaos window stops spraying
  tiny parts (the post-chaos SYNC REPLICA STRICT tail was the dominant
  cost), and halve the replica fan-out 16->8 keeping all three engine
  variants with multiple replicas. The guarded multi-leader race
  (#23296) is driven by the throttled mutator threads, unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.2-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read from Parquet fails with in-memory filesystem cache

5 participants