Skip to content

Commit fc8998b

Browse files
authored
Merge 1f21481 into a62163c
2 parents a62163c + 1f21481 commit fc8998b

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.github/workflows/clt_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
test_prefix: test/clt-tests/optimisation-and-update/
5353
- name: Sharding and Replication
5454
test_prefix: test/clt-tests/sharding/
55+
- name: Bugs
56+
test_prefix: test/clt-tests/bugs/
5557
- name: Indexer
5658
test_prefix: test/clt-tests/indexer/
5759
steps:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
––– input –––
2+
export INSTANCE=1
3+
––– output –––
4+
––– block: ./replication/start-searchd-precach –––
5+
––– input –––
6+
export INSTANCE=2
7+
––– output –––
8+
––– block: ./replication/start-searchd-precach –––
9+
––– input –––
10+
export CLUSTER_NAME=c
11+
––– output –––
12+
––– block: ./replication/create-cluster –––
13+
––– block: ./replication/join-cluster-on-all-nodes –––
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Test that covers the following issue: https://github.com/manticoresoftware/manticoresearch/issues/3048
2+
––– block: ../base/start-cluster-2-nodes –––
3+
––– input –––
4+
mysql -h0 -P1306 -e "create table system.test (id bigint, name string, value json)"
5+
––– output –––
6+
––– input –––
7+
mysql -h0 -P1306 -e "alter cluster c add system.test"
8+
––– output –––
9+
––– input –––
10+
for i in {1..20}; do
11+
mysql -h0 -P1306 -e "update c:system.test set value = '{\"a\":2}' where name = 'node'" &
12+
mysql -h0 -P2306 -e "insert into c:system.test values (0, 'slave', '{\"a\":1}')" &
13+
done
14+
––– output –––
15+
––– input –––
16+
timeout 10 sh -c "wait && echo 'All good'" || echo "There is issue with hang up of parallel request in different nodes"
17+
––– output –––
18+
All good
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Issue when we unable to drop and create new table in some cases
2+
while it produces error that directory is not empty
3+
https://github.com/manticoresoftware/manticoresearch/issues/3075
4+
––– block: ../base/start-searchd –––
5+
––– input –––
6+
LOG_FILE=$(mktemp)
7+
––– output –––
8+
––– input –––
9+
while true; do
10+
mysql -h0 -P9306 << EOF
11+
INSERT INTO a (id, value) VALUES (0, 'hello world');
12+
EOF
13+
sleep 2
14+
done > /dev/null &
15+
––– output –––
16+
––– input –––
17+
while true; do
18+
mysql -h0 -P9306 << EOF
19+
select * from a where match('world');
20+
EOF
21+
sleep 0.2
22+
done > /dev/null &
23+
––– output –––
24+
––– input –––
25+
while true; do
26+
mysql -h0 -P9306 << EOF
27+
DROP TABLE IF EXISTS b;
28+
CREATE TABLE b (id bigint, value string);
29+
EOF
30+
done > $LOG_FILE &
31+
––– output –––
32+
––– input –––
33+
timeout 10 tail -f $LOG_FILE | while read line; do
34+
if echo "$line" | grep -q "directory is not empty"; then
35+
kill $(jobs -p)
36+
break
37+
fi
38+
done
39+
––– output –––

0 commit comments

Comments
 (0)