From ec987b1b7d8d833d146e00994dd3cd014e9e32c2 Mon Sep 17 00:00:00 2001 From: qiye Date: Thu, 21 Sep 2023 18:27:08 +0800 Subject: [PATCH] [fix](index compaction)ignore doc which dose not exist in destination segment (#24729) --- be/src/clucene | 2 +- be/src/olap/compaction.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/be/src/clucene b/be/src/clucene index 3b51f707d4..0be3c4aeb6 160000 --- a/be/src/clucene +++ b/be/src/clucene @@ -1 +1 @@ -Subproject commit 3b51f707d4c51596d77b97f48b0baf49db0d2c30 +Subproject commit 0be3c4aeb62ecbc0ff1c79c9526e619742d54fcc diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index f62fda89a0..c000f91578 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -402,7 +402,11 @@ Status Compaction::do_compaction_impl(int64_t permits) { if (_input_row_num > 0 && stats.rowid_conversion && config::inverted_index_compaction_enable) { OlapStopWatch inverted_watch; // translation vec - // <> + // <> + // the first level vector: index indicates src segment. + // the second level vector: index indicates row id of source segment, + // value indicates row id of destination segment. + // indicates current row not exist. std::vector>> trans_vec = stats.rowid_conversion->get_rowid_conversion_map();