Skip to content

Commit

Permalink
Allow smaller ranges in Jepsen tests
Browse files Browse the repository at this point in the history
Jepsen attempts to set custom range sizes using values not allowed
under the new validation added in [1]. We disable that validation
by setting the COCKROACH_MIN_RANGE_MAX_BYTES environment variable when
startting cockroachdb.

[1] cockroachdb/cockroach#96725
  • Loading branch information
renatolabs committed Mar 27, 2023
1 parent 1150b38 commit a25bfe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cockroachdb/src/jepsen/cockroach/auto.clj
Expand Up @@ -167,7 +167,8 @@
(str "--join="))]]
(wrap-env [(str "COCKROACH_LINEARIZABLE="
(if (:linearizable test) "true" "false"))
(str "COCKROACH_MAX_OFFSET=" "250ms")]
(str "COCKROACH_MAX_OFFSET=" "250ms")
(str "COCKROACH_MIN_RANGE_MAX_BYTES=0")]
(cockroach-start-cmdline join))))

(defn start!
Expand Down

0 comments on commit a25bfe9

Please sign in to comment.