Repository navigation
Backport #112573 to 26.6: Fix async bounded read buffer readbigat race - #114618
Conversation
|
Workflow [BackportPR], commit [25d672b] Summary: ✅ |
Both sides appended new tests to the end of `src/Interpreters/tests/gtest_filecache.cpp`. Resolved by keeping both: the two `readBigAt` tests from this backport and the two `FileCacheQueryLimit` tests that `26.6` gained from the #107028 backport. Co-Authored-By: Claude Opus 5 <[email protected]>
The backported gtests use scaffolding that only exists on newer branches. In `src/Interpreters/tests/gtest_filecache.cpp`, add the four helpers the two new tests need (`FakeRemoteReadBuffer`, `TestQueryScope`, `writeSourceFile`, `makeSourceData`), taken from `master`, plus the `IO/BoundedReadBuffer.h` include. In `src/Disks/tests/gtest_asynchronous_bounded_read_buffer.cpp`, `const auto` deduces `Counter` because `ProfileEvents::Counters::operator[]` returns a reference to a `std::atomic`, whose copy constructor is deleted. Name the type `ProfileEvents::Count` instead, which also compiles on newer branches. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Fixed the unit-test build break and resolved the merge conflict with Build failuresThree build jobs (
|
Original pull-request #112573
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.6.3.51