Skip to content

Commit 478c7c8

Browse files
committed
Remove counter-dec workload
checker/counter does not support decrements and in Jepsen 0.2.1 it throws when provided negative increments. Closes #60
1 parent dc5a922 commit 478c7c8

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/tarantool/counter.clj

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(ns tarantool.counter
2-
"Incrementing and decrementing a counter."
2+
"Incrementing a counter."
33
(:require [jepsen [client :as client]
44
[checker :as checker]
55
[generator :as gen]
@@ -83,12 +83,3 @@
8383
:checker (checker/compose
8484
{:timeline (timeline/html)
8585
:counter (checker/counter)})})
86-
87-
(defn workload-dec
88-
[opts]
89-
(assoc (workload-inc opts)
90-
:generator (->> (take 100 (cycle [add sub]))
91-
(cons r)
92-
gen/mix
93-
(gen/delay 1/10)
94-
(with-op-index))))

src/tarantool/runner.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
a keyword here instead."
4343
{:set sets/workload
4444
:counter-inc counter/workload-inc
45-
:counter-dec counter/workload-dec
4645
;:bank bank/workload
4746
;:bank-index bank/index-workload
4847
;:g2 g2/workload
@@ -58,7 +57,7 @@
5857

5958
(def workloads-expected-to-pass
6059
"A collection of workload names which we expect should actually pass."
61-
(remove #{:counter-dec} standard-workloads))
60+
(remove #{} standard-workloads))
6261

6362
(def workload-options
6463
"For each workload, a map of workload options to all the values that option

0 commit comments

Comments
 (0)