File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 246
246
(stop! test node)
247
247
(wipe! test node))
248
248
249
+ ; db/Primary
250
+ ; (setup-primary! [_ test node])
251
+
252
+ ; (primaries [_ test]
253
+ ; (->> (node-state test)
254
+ ; (filter (comp #{:leader} :role))
255
+ ; (map :node)))
256
+
257
+ db/Process
258
+ (start! [_ test node]
259
+ (start! node {}))
260
+ ; {:initial-cluster-state (if @(:initialized? test)
261
+ ; :existing
262
+ ; :new)
263
+ ; :nodes @(:members test)}))
264
+
265
+ (kill! [_ test node]
266
+ (c/su
267
+ ; (cu/stop-daemon! binary pidfile)))
268
+ (cu/grepkill! :kill " tarantool" )))
269
+
270
+ db/Pause
271
+ (pause! [_ test node] (c/su (cu/grepkill! :stop " tarantool" )))
272
+ (resume! [_ test node] (c/su (cu/grepkill! :cont " tarantool" )))
273
+
249
274
db/LogFiles
250
275
(log-files [_ test node]
251
276
[logfile])))
Original file line number Diff line number Diff line change 118
118
119
119
(def crash-pattern
120
120
" An egrep pattern we use to find crashes in the Tarantool logs."
121
- " Segmentation fault|too long WAL write|F>" )
121
+ " Segmentation fault|too long WAL write|F>|ER_TUPLE_FOUND " )
122
122
123
123
(defn logged-crashes
124
124
" Takes a test, and returns a map of nodes to strings from their Tarantool logs
Original file line number Diff line number Diff line change 6
6
[checker :as checker]
7
7
[generator :as gen]
8
8
[independent :as independent]]
9
+ [clojure.tools.logging :refer [info warn]]
9
10
[next.jdbc :as j]
10
11
[next.jdbc.sql :as sql]
11
12
[tarantool.client :as cl]
38
39
(cl/with-txn-aborts op
39
40
(case (:f op)
40
41
:add (let [con (cl/open (jepsen/primary test) test)]
41
- (do (sql/insert! con table-name {:value v})
42
+ (info (jepsen/primary test))
43
+ ; (do (sql/insert! con table-name {:value v})
44
+ (do (j/execute! con [(str " INSERT INTO " table-name " (value) VALUES (" v " )" )])
42
45
(assoc op :type :ok )))
43
46
44
47
:read (->> (sql/query conn [(str " SELECT * FROM " table-name)])
You can’t perform that action at this time.
0 commit comments