Repository navigation
Backport #115222 to 26.6: Bound text index posting list deserialization - #116535
Conversation
d09ec26 to
e71cd5c
Compare
|
Workflow [BackportPR], commit [4b704f7] Summary: ❌
|
|
@groeneai fix CI in this backport |
|
The
- return PostingsSerialization(nullptr, MergeTreeTextIndexSerializationVersion::V2_WithPositions);
+ return PostingsSerialization(std::make_unique<PostingListCodecNone>(), MergeTreeTextIndexSerializationVersion::V2_WithPositions);and restore Worth knowing: the same file is now on 26.3 and 26.5 unvalidated. The other red here, I have no push access to |
|
Opened #116640 for this. One change from what I said earlier: it targets The fix is test-only: the rewritten gtest built The 26.7 equivalent will be linked on #116536. |
|
@CurtizJ The fix is the same two lines you merged for 26.7 in #116636: @@ -6,6 +6,7 @@
#include <Storages/MergeTree/MergeTreeIndexText.h>
+#include <Storages/MergeTree/MergeTreeIndexTextPostingListCodec.h>
@@ -32,7 +33,7 @@
- return PostingsSerialization(nullptr, MergeTreeTextIndexSerializationVersion::V2_WithPositions);
+ return PostingsSerialization(std::make_unique<PostingListCodecNone>(), MergeTreeTextIndexSerializationVersion::V2_WithPositions);The file on this branch is byte-identical to the 26.7 pre-image (blob Correcting myself on one point above: I said that basing a pull request on How would you like the 26.6 half delivered? Either apply the two lines above directly, or confirm |
…serialization `TextIndexPostingsDeserializationTest` constructed `PostingsSerialization` with a null codec, but in 26.6 the constructor has `chassert(posting_list_codec)`, so the test aborted in builds with sanitizers, where `chassert` is active (on `master` the test goes through `PostingListCodecNone` directly and never constructs `PostingsSerialization`). Pass the `None` codec instead: a posting list without the `IsCompressed` flag never consults it, so the tested code path is the same. Unit tests (tsan): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116535&sha=e71cd5c2e4bb1ed299b4fb5feaaf87db7a350d94&name_0=BackportPR&name_1=Unit%20tests%20%28tsan%29 Related: #116535
Original pull-request #115222
Cherry-pick pull-request #116310
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.4.47