Applies operations to a database.
Applies operations to a database.
(close! client test)
Close the client connection when work is completed or an invocation crashes the client. Close should not affect the logical state of the test.
Close the client connection when work is completed or an invocation crashes the client. Close should not affect the logical state of the test.
(invoke! client test operation)
Apply an operation to the client, returning an operation to be appended to the history. For multi-stage operations, the client may reach into the test and conj onto the history atom directly.
Apply an operation to the client, returning an operation to be appended to the history. For multi-stage operations, the client may reach into the test and conj onto the history atom directly.
(open! client test node)
Set up the client to work with a particular node. Returns a client which is ready to accept operations via invoke! Open should not affect the logical state of the test; it should not, for instance, modify tables or insert records.
Set up the client to work with a particular node. Returns a client which is ready to accept operations via invoke! Open *should not* affect the logical state of the test; it should not, for instance, modify tables or insert records.
(setup! client test)
(setup! client test node)
Called once to set up database state for testing. 3 arity form is deprecated and will be removed in a future jepsen version.
Called once to set up database state for testing. 3 arity form is deprecated and will be removed in a future jepsen version.
(teardown! client test)
Tear down the client when work is complete.
Tear down the client when work is complete.
(closable? client)
Returns true if the given client implements method close!
.
Returns true if the given client implements method `close!`.
(close-compat! client test)
Inspects the client for close!
method and calls teardown!
then close!
.
If close!
is not implemented, we assume a legacy implementation of teardown!
.
Inspects the client for `close!` method and calls `teardown!` then `close!`. If `close!` is not implemented, we assume a legacy implementation of `teardown!`.
(open-compat! client test node)
Attempts to call open!
on the given client. If open!
does not
exist, we assume a legacy implementation of setup!
.
Attempts to call `open!` on the given client. If `open!` does not exist, we assume a legacy implementation of `setup!`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close