@@ -58,7 +58,7 @@ Port 1306: Node is synced.
58
58
Checking status for port 2306:
59
59
Port 2306: Node is synced.
60
60
––– 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 $?
62
62
––– output –––
63
63
0
64
64
––– input –––
@@ -88,22 +88,22 @@ system.test2_s0
88
88
system.test2_s1
89
89
system.test2_s2
90
90
––– 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'
92
92
––– output –––
93
93
"created"
94
94
––– 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'
96
96
––– output –––
97
97
"created"
98
98
––– input –––
99
99
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
100
100
––– 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
+ +------+-------+
107
107
––– input –––
108
108
mysql -h0 -P1306 -e "SELECT count(*) FROM test2;"
109
109
––– output –––
@@ -115,12 +115,12 @@ mysql -h0 -P1306 -e "SELECT count(*) FROM test2;"
115
115
––– input –––
116
116
mysql -h0 -P2306 -e 'DESC system.test2_s2 OPTION force=1'
117
117
––– 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
+ +-------+--------+------------+
124
124
––– input –––
125
125
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_e3d112439806feecd6da4d4cb4544210_status'\G"
126
126
––– output –––
@@ -131,7 +131,7 @@ Counter: cluster_e3d112439806feecd6da4d4cb4544210_status
131
131
cp /var/log/manticore-2/query.log /tmp/query.log
132
132
––– output –––
133
133
––– 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 }}'
135
135
––– output –––
136
136
––– comment –––
137
137
Get lines that added to query log after snapshot on the crash
@@ -153,9 +153,9 @@ cat /var/log/manticore-2/query.log
153
153
––– input –––
154
154
mysql -h0 -P2306 -e 'DESC system.test2_s2 OPTION force=1'
155
155
––– 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