[Draft] Add restart test for multi-index types with import#3293
Draft
zpf121 wants to merge 34 commits intoinfiniflow:mainfrom
Draft
[Draft] Add restart test for multi-index types with import#3293zpf121 wants to merge 34 commits intoinfiniflow:mainfrom
zpf121 wants to merge 34 commits intoinfiniflow:mainfrom
Conversation
# Conflicts: # python/restart_test/restart_util.py # python/restart_test/test_multiple_index_types_import.py # tools/generate_wiki_embedding_plus.py
# Conflicts: # python/restart_test/restart_util.py # python/restart_test/test_multiple_index_types_import.py # tools/generate_wiki_embedding_plus.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new restart test test_multiple_index_types_import.py to verify that all index types work correctly after restart with concurrent read/write operations. The test is designed to detect bugs in index building during data import.
Test Logic
Phase 1: Create Table and Indexes
Create a table with multiple columns: id, text, category, vector_col, multi_vector_col, sparse_col, tensor_col
Create indexes BEFORE importing data:
FullText index on text
Secondary index (high cardinality) on id
HNSW index on vector_col
HNSW index on multi_vector_col
BMP index on sparse_col
Secondary index (low cardinality) on category
Phase 2: Import Data
Import ~10000000 rows from CSV file
Verify row count matches expected
Phase 3: Restart Testing (3 rounds)
Each round:
Restart Infinity server
Start 4 write threads (continuous insert)
Start 9 read threads (validate each index type works)
Run for 120 seconds per round
Verify row count increases after each round