Skip to content

Commit

Permalink
fix for bug partition id = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
yujun777 committed Jan 8, 2024
1 parent 9f6a48a commit 1737c72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/clucene
Submodule clucene updated 43 files
+1 −1 CMakeLists.txt
+4 −6 src/contribs-lib/CLucene/analysis/LanguageBasedAnalyzer.cpp
+62 −60 src/contribs-lib/CLucene/analysis/cjk/CJKAnalyzer.cpp
+2 −1 src/contribs-lib/CLucene/analysis/cjk/CJKAnalyzer.h
+13 −0 src/contribs-lib/CLucene/analysis/jieba/ChineseTokenizer.cpp
+1 −0 src/contribs-lib/CLucene/analysis/jieba/ChineseTokenizer.h
+7 −0 src/core/CLucene/analysis/AnalysisHeader.h
+11 −1 src/core/CLucene/analysis/Analyzers.cpp
+8 −5 src/core/CLucene/analysis/Analyzers.h
+3 −2 src/core/CLucene/analysis/standard95/StandardAnalyzer.h
+10 −3 src/core/CLucene/analysis/standard95/StandardTokenizer.h
+6 −0 src/core/CLucene/index/DirectoryIndexReader.cpp
+2 −0 src/core/CLucene/index/DirectoryIndexReader.h
+6 −0 src/core/CLucene/index/IndexReader.h
+34 −47 src/core/CLucene/index/IndexWriter.cpp
+4 −7 src/core/CLucene/index/IndexWriter.h
+7 −0 src/core/CLucene/index/MultiReader.cpp
+1 −0 src/core/CLucene/index/MultiReader.h
+5 −0 src/core/CLucene/index/MultiSegmentReader.cpp
+26 −18 src/core/CLucene/index/SDocumentWriter.cpp
+13 −2 src/core/CLucene/index/SDocumentWriter.h
+59 −26 src/core/CLucene/index/SegmentTermEnum.cpp
+16 −11 src/core/CLucene/index/TermInfosReader.cpp
+24 −7 src/core/CLucene/index/TermInfosWriter.cpp
+1 −0 src/core/CLucene/index/_DocumentsWriter.h
+1 −0 src/core/CLucene/index/_MultiSegmentReader.h
+10 −5 src/core/CLucene/index/_SegmentTermEnum.h
+6 −4 src/core/CLucene/index/_TermInfosWriter.h
+1 −3 src/core/CLucene/store/IndexInput.h
+7 −6 src/core/CLucene/store/_RAMDirectory.h
+1 −1 src/core/CLucene/util/PFORUtil.cpp
+63 −0 src/core/CLucene/util/SSEUtil.h
+40 −0 src/core/CLucene/util/stringUtil.h
+14 −0 src/test/CMakeLists.txt
+2 −1 src/test/analysis/TestAnalysis.cpp
+510 −357 src/test/contribs-lib/analysis/testChinese.cpp
+98 −74 src/test/document/TestDocument.cpp
+1 −1 src/test/search/TestSearchRange.cpp
+1 −1 src/test/test.h
+0 −32 src/test/tests.cpp
+337 −149 src/test/util/TestBKD.cpp
+10 −11 src/test/util/TestBKD.h
+5 −7 src/test/util/TestMSBRadixSorter.cpp
5 changes: 5 additions & 0 deletions be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,11 @@ std::vector<RowsetSharedPtr> Tablet::_pick_visible_rowsets_to_compaction(
}
}

// program has bug, then the visible_version can not update
if (partition_id() == 0) {
visible_version = std::numeric_limits<int64_t>::max();
}

std::vector<RowsetSharedPtr> candidate_rowsets;
{
std::shared_lock rlock(_meta_lock);
Expand Down

0 comments on commit 1737c72

Please sign in to comment.