Skip to content

Commit bd6267c

Browse files
committed
Use int instead of text in crash report test
1 parent 5379de5 commit bd6267c

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

test/clt-tests/core/crash-mre.rec

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Port 1306: Node is synced.
5858
Checking status for port 2306:
5959
Port 2306: Node is synced.
6060
––– input –––
61-
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, name TEXT) SHARDS='3' RF='2';"; echo $?
61+
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, value integer) SHARDS='3' RF='2';"; echo $?
6262
––– output –––
6363
0
6464
––– input –––
@@ -88,22 +88,22 @@ system.test2_s0
8888
system.test2_s1
8989
system.test2_s2
9090
––– input –––
91-
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"name": "iPhone 13 Pro"}}' | jq '.result'
91+
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"value":1}}' | jq '.result'
9292
––– output –––
9393
"created"
9494
––– input –––
95-
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"name": "iPhone 14 Pro"}}' | jq '.result'
95+
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"value":2}}' | jq '.result'
9696
––– output –––
9797
"created"
9898
––– input –––
9999
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
100100
––– output –––
101-
+------+---------------+
102-
| id | name |
103-
+------+---------------+
104-
| 1 | iPhone 13 Pro |
105-
| 2 | iPhone 14 Pro |
106-
+------+---------------+
101+
+------+-------+
102+
| id | value |
103+
+------+-------+
104+
| 1 | 1 |
105+
| 2 | 2 |
106+
+------+-------+
107107
––– input –––
108108
mysql -h0 -P1306 -e "SELECT count(*) FROM test2;"
109109
––– output –––
@@ -115,12 +115,12 @@ mysql -h0 -P1306 -e "SELECT count(*) FROM test2;"
115115
––– input –––
116116
mysql -h0 -P2306 -e 'DESC system.test2_s2 OPTION force=1'
117117
––– output –––
118-
+-------+--------+----------------+
119-
| Field | Type | Properties |
120-
+-------+--------+----------------+
121-
| id | bigint | |
122-
| name | text | indexed stored |
123-
+-------+--------+----------------+
118+
+-------+--------+------------+
119+
| Field | Type | Properties |
120+
+-------+--------+------------+
121+
| id | bigint | |
122+
| value | uint | |
123+
+-------+--------+------------+
124124
––– input –––
125125
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_e3d112439806feecd6da4d4cb4544210_status'\G"
126126
––– output –––
@@ -131,7 +131,7 @@ Counter: cluster_e3d112439806feecd6da4d4cb4544210_status
131131
cp /var/log/manticore-2/query.log /tmp/query.log
132132
––– output –––
133133
––– input –––
134-
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"name": "iPhone 15 Pro"}}'
134+
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"value": 5}}'
135135
––– output –––
136136
––– comment –––
137137
Get lines that added to query log after snapshot on the crash
@@ -153,9 +153,9 @@ cat /var/log/manticore-2/query.log
153153
––– input –––
154154
mysql -h0 -P2306 -e 'DESC system.test2_s2 OPTION force=1'
155155
––– output –––
156-
+-------+--------+----------------+
157-
| Field | Type | Properties |
158-
+-------+--------+----------------+
159-
| id | bigint | |
160-
| name | text | indexed stored |
161-
+-------+--------+----------------+
156+
+-------+--------+------------+
157+
| Field | Type | Properties |
158+
+-------+--------+------------+
159+
| id | bigint | |
160+
| value | uint | |
161+
+-------+--------+------------+

0 commit comments

Comments
 (0)