-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optiming threads deadlock (#453)
* fix: optiming threads deadlock Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> * fix by comments Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> * Update crates/rayon/src/lib.rs test clippy * Update crates/rayon/src/lib.rs test clippy * fix monitor status Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> --------- Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> Co-authored-by: usamoi <usamoi@outlook.com>
- Loading branch information
1 parent
97ce096
commit b3c9181
Showing
9 changed files
with
99 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
[default.extend-words] | ||
ND = "ND" | ||
DUR = "DUR" | ||
ANS = "ANS" | ||
|
||
[default] | ||
extend-ignore-re = [ | ||
# Latex formula | ||
"\\$.+?\\$", | ||
] | ||
|
||
[files] | ||
extend-exclude = ["vendor/pg_config/*.txt", "vendor/pgrx_binding/*.rs"] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
query I | ||
SELECT idx_indexing FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
f | ||
|
||
query I | ||
SELECT idx_growing FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
{} | ||
|
||
query I | ||
SELECT idx_sealed FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
{1000} | ||
|
||
statement ok | ||
DROP TABLE t; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
statement ok | ||
CREATE TABLE t (val vector(3)); | ||
|
||
statement ok | ||
INSERT INTO t (val) SELECT ARRAY[random(), random(), random()]::real[] FROM generate_series(1, 1000); | ||
|
||
statement ok | ||
CREATE INDEX i ON t USING vectors (val vector_l2_ops) | ||
WITH (options = "[indexing.hnsw]"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Test the background threads `optimizing.indexing` and `optimizing.sealing` working properly | ||
sqllogictest -u runner -d runner $(dirname $0)/create.slt | ||
sleep 240 | ||
sqllogictest -u runner -d runner $(dirname $0)/check.slt |