Skip to content

Commit

Permalink
one more attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Shevchuk committed Oct 16, 2024
1 parent 4370042 commit e4f140b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-jepsen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Jepsen tests
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
GO_VERSION: 1.22.4
Expand Down
6 changes: 4 additions & 2 deletions tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@
(try
(with-conn [c conn]
(case (:f op)
:read (timeout 600000 (assoc op :type :info, :error "read-timeout")
:read (timeout 1200000 (assoc op :type :info, :error "read-timeout")
(cond (= (count (j/query c ["show slave status for channel ''"])) 0)
(def value_cnt (j/query c ["select count(*) as count from test1.test_set"]))
(info (str "Values count: " value_cnt))
(assoc op :type :ok,
:value (->> (j/query c ["select value from test1.test_set"]
{:row-fn :value})
Expand Down Expand Up @@ -276,7 +278,7 @@
(gen/nemesis
(fn [] (map gen/once
[{:type :info, :f :stop}
{:type :sleep, :value 600}])))
{:type :sleep, :value 1200}])))
(gen/time-limit 1200)))
:checker mysync-set
:remote control/ssh})

0 comments on commit e4f140b

Please sign in to comment.