Releases: jepsen-io/jepsen
0.3.10
This release is aimed at controllable entropy and support for running Jepsen inside Antithesis: a deterministic simulation testing environment. A new supporting library, jepsen.generator, provides the current generator system along with jepsen.random: a new namespace for pluggable random value generation. Jepsen uses these RNGs throughout, which makes it possible to run a test with a deterministic seed, or to source entropy from an external system, like Antithesis. The jepsen.antithesis library provides additional support for assertions, randomness, and lifecycle operations, plus wrappers for clients and checkers.
Also, this release introduces a new kind of visualization: op color plots, which show operations over time with different user-defined colors. This is particularly helpful for getting a feeling for "when did we lose data?" or "did only read-only queries succeed during a partition?"
New Features
nemesis.filenow supports a new:f :truncate-fileoperation`generatoris now its own libraryrandom: a new namespace for controllable, optionally deterministic random values. All Jepsen random calls now go through this library.jepsen.antithesis: a new supporting library for running tests inside the Antithesis testing environmentchecker/op-color-plot: draw plots of operations over time, with different kinds of operations in different colors
Minor Improvements
control.util/lsnow supports:recursive?and:typesoptions, which makes it easier to (e.g.) pick a random data file for a databasenemesis.membership: document an example of how to provide:perfand:final-generatorin packagescontrol.net/ip: now uses the control node's DNS, then falls back to SSH. This makesipusable when we have no SSH access.checker: allreifyinstances are now defrecords. This makes them print nicer, and allows doing some interesting tree-walking and rewriting of checkers.
Dependency Updates
- Clojure 1.12.3
- tools.cli 1.2.245
- elle 0.2.5
- jepsen.generator 0.1.0
- knossos 0.3.13
- http-kit 2.8.1
- ring 1.15.3
- sshj 0.40.0
- hiccup 2.0.0
- data.codec 0.2.0
- LazyFS 0.3.0
0.3.9
A medium-sized release, this version makes several quality-of-life improvements. We (finally!) download log files only once, rather than twice at the end of a run; this should make multi-GB log downloads less painful. A new namespace, db.watchdog, supports restarting flaky DBs automatically. Generators are a little more sophisticated, and a little easier to compose. Several error messages are nicer. Enjoy!
Bugfixes
- Jepsen now downloads log files only once, rather than twice at the end of a run
- nemesis.file: converts rational
:probabilityvalues to floats, rather than letting corrupt-file silently mis-parse the rational.
API Changes
New Features
- db.watchdog: automatically restarts DB nodes when they crash
- cli/without-defaults-for: strips defaults from option specifications. This significantly streamlines using the same option spec for both
testandtest-all. - control.util/tarball!: creates a tarball of a directory. Particularly helpful for downloading data dirs as a part of
db/log-files. - generator/map: functions can now take
(f op test context)for more control. - generator/shortest-any: like
any, but ends as soon as any single generator does. Helpful when you have a fixed-length generator, and you want to mix in some other operations, but don't know for how long.
Minor Changes
lein testnow runs integration tests by default. I'm not entirely sure about this one; will try it out and see.- When downloading log files, Jepsen tries to kill all DB nodes first. This reduces the chances of files shifting as we read them.
- generator: many constructors now pass through
nilgenerators intelligently, returningnilimmediately. This makes it easier to determine whether a generator will do anything before the test starts. - nemesis/node-start-stopper: re-use existing SSH connections rather than opening new ones
- reconnect/with-conn: throws if no connection is available. This is a significantly clearer error message.
- Improved error messages for ex-infos thrown in generators and from a test as a whole
- nemesis.file: returns [:io-error ...] instead of throwing on IO errors. This cuts down on noise when trying to corrupt files the DB is (e.g.) deleting out from under us.
- nemesis.combined: shorter printed representations for some generators
- Jepsen's interrupt handler logging has more informative log lines
- reconnect: fixed a docstring typo
Dependencies
- elle 0.2.4
- jepsen.history 0.1.5
- knossos 0.3.12
- ring 1.14.1
- test.chuck 0.2.15
0.3.8
The centerpiece of 0.3.8 is a new nemesis for corrupting files: jepsen.nemesis.file. This nemesis can be scoped to specific regions of a file, is aware of chunk structure (e.g. database pages) and can be used to snapshot, restore, shuffle, and introduce bitflips in chunks stochastically. Its faults can also be scoped to specific nodes, or striped helically around a cluster. A big thank you to Ellen Marie Dash (@duckinator), who reviewed and contributed C expertise on this project.
You'll also find a handful of new utility functions, including a fast Zipfian PRNG, and a variety of bugfixes and improvements for clock skew nemeses.
Bugfixes
- SystemD took over clock management from NTP on newer Debian installs, and has its own way to disable clock sync. We now disable both NTP and systemd's time daemon.
nemesis/composeoffers better error messages when given an unknown:f
API Changes
nemesis.time's bump operations used to generate lots of very small clock (e.g. 10 ms) adjustments, and only a few large ones. This made it hard to find errors with large (e.g. 10+ second) clock skew. We now have a higher chance of picking a large offset.
New Features
nemesis.file: a new tool for injecting file corruption.generator/concurrency-limit, which limits the number of threads executing ops from a given generator to at mostn.jepsen.webwill try to shell out to the system'szipcommand when building zip files. This can be noticeably faster than the built-in Java zip.
Minor Changes
nemesis.time's C-compiling powers now live innemesis, where they're used bynemesis.file.util/minority: likemajority, computes just shy of half an integerutil/zipf: generates Zipfian-distributed integersutil/rand-distributioncan generate Zipfians as wellos.debiannow includesbuild-essential, rather than installing GCC on-demandchecker.perfcan now take configurable filenames for latency graphs, in case you want to spit out custom latency plots- Rate graphs now skip over empty values of
[:f :type] - Knossos 0.3.11
- Ring 1.13.0
- Fipp 0.6.27
- Small documentation fixups
v0.3.7
A very small bugfix release. Jepsen.history incorrectly threw IndexOutOfBoundsException when asked for an out-of-bounds index with a default value. Clojure's semantics are to return the default value, which we now match. This fixes specific kinds of destructuring bind on empty histories.
v0.3.6
This is a sizeable release. It includes a significant correctness bugfix for a rare condition that could make operations in the history print with the wrong data. It also adds a new namespace for composing databases, nemeses, and generators when working with systems where each node has a different role. Kafka-style tests gain new powers and are significantly faster. And we have the usual slew of small bugfixes, dependency bumps, and quality-of-life improvements. Happy testing!
Bugfixes
generator/fill-in-mapno longer generates Ops with duplicate fields in their record extmaps. This fixes a rare bug where operations which used extra fields could wind up with two different values for (e.g.)(:value op)vs(pprint op). It should also improve speed and size on disk.checker.perf/with-range: fix a bug causing plots with zero data points to convert the plot to a string. This was expensive if the plot is large, and caused very confusing error messages. We now provide a short string message instead.net/iptablesnow handles the new error message fromtc qdiscwhen callingnet/fast!
API Changes
control/execwill now throw a:nonzero-exiterror when an exit status code isnil. Yes, this is apparently a thing that's possible.generator.test/with-fixed-rand-nthhas been replaced bywith-fixed-rands, which controls rand, rand-int, and rand-nth.tests/kafka: failed and info operations are now assumed to roll back consumer positions, rather than advancing them.tests/kafka: emit subscribe/assign ops only 1:64 ops, rather than 1:8. Now tunable via(:sub-p test).
New Features
- A new namespace,
jepsen.role, supports systems where different nodes run different software. db/map-testwraps a DB in another which alters the test map. Helpful for composing DBs together which expect different things from their test maps.generator/each-process: likeeach-thread, this facets an underlying generator into a distinct one for each process.tests/kafkachecks for transactions which read their own writes prior to commit.
Minor Changes
os/centosnow uses dpkg 1.19.8control.net/ip*now prefers v4 addressescontrol/on-nodesno longer spawns a future when given a single node--slightly more efficient.- SSHJ now falls back to other auth methods after an AgentProxyException
generator/mapandf-mapnow returnnilwhen given anilgenerator, which simplifies some before-run checks.generator.test/default-testnow includes a pair of:nodes, for generators that use nodeschecker/check-safenow writes exceptions as data to the:errorfield of the results, rather than an unreadable string stacktracetests.kafkanow detects all duplicates even when given inconsistent offsets. It's nice to have both, it turns out.tests/kafkaincludes an:unseenkey in poll operations to help operators track how far behind we aretests/kafka: new tests for the checker & generatortests/kafka: duplicate errors now include specific offsetstests/kafka: inconsistent-offsets errors now emit sorted sets, for readabilitytests/kafkais roughly 8x faster now, thanks to a slew of performance improvementstests/kafkaalso ignores the new cycle-exists variants of G0, G1c, etc.- Jepsen's internal tests log less noise now
- Clojure 1.12.0
- tools.logging 1.3.0
- tools.cli 1.1.230
- unilog 0.7.32
- elle 0.2.2
- http-kit 2.8.0
- ring 1.12.2
- sshj 0.39.0
- data.codec 0.2.0
- data.fressian 1.1.0
Full Changelog: v0.3.5...v0.3.6
0.3.5
This is a relatively small release. It incorporates a new version of Elle which brings dramatic performance improvements, and has a few quality-of-life improvements.
Bugfixes
- os.debian/install and remove now acquire locks, which means you can do multiple debian-package-affecting operations concurrently against a single node.
- Thread/sleep callsites now have explicit integer coercion, fixing a crashes in newer JVMs/Clojure.
API Changes
- control.util/grepkill! now matches the full pattern of the process, rather than just the first 15 characters. This is particularly helpful for killing, say, one out of several
javaprocesses. - net/Net has been moved to net.proto/Net. All its functions are still available in jepsen.net too.
New Features
- checker.perf: nemesis specifications can now include
:hidden? true, which prevents them from appearing on graphs.
Minor Changes
- fs-cache/deploy-remote! returns the remote path it uploaded, making it easier to thread into other expressions.
- control.util/install-archive! now has docs that explain the use of file:// URLs.
- net/drop! now uses existing SSH connections, making it faster
- net/drop! has a clearer docstring
- Elle 0.2.1
- SSHJ 0.38.0
- Ring 1.11.0
0.3.4
This is a small bugfix & performance release. Just a little faster, a little more correct, a little easier to use. :-)
Bugfixes
- control.util/await-tcp-port no longer logs a truncated error message
- tests.kafka no longer crashes when checking histories without any received messages
- jepsen.independent's generators properly unlift the :value fields of the operations they pass through to underlying generators
Removals
- os.debian/install-jdk8! is gone now. The repos it relies on haven't worked in years.
Minor changes
- independent/checker uses a concurrent fold for breaking apart histories in fewer passes. This roughly doubles throughput in tests with lots of independent keys.
- independent/checker now returns results in a sorted map, which is easier to read
- generator.interpreter-test now tests matching open/close! invocations
- lazyfs version 0.2.0
- store.format logs more informative errors when serialization fails. You'll get a path to the specific element that couldn't be serialized, as well as its class. This makes serializing tests with new datatypes much less frustrating.
v0.3.3
This release updates Jepsen to run with Debian Bookworm. It also includes performance improvements aimed at testing large histories. Jepsen can run and check histories of up to a billion operations now.
Significant API Changes
- During test setup,
(:generator test)is now wrapped in a newForgettablereference type. You can deref this if you want access to the generator for some reason, but be aware that retaining the head of the generator often causes linear memory consumption during the test. - After the test starts generating operations, attempting to deref
(:generator test)will throw. - core/run-case! and generator.interpreter/run! now return tests, rather than just histories.
Performance Improvements
- Jepsen no longer retains the head of the generator. This dramatically improves memory consumption on long-running tests: running tests of a billion operations in a 512 MB heap is entirely reasonable.
- Elle 0.1.7 comes with significant speed and memory improvements to the G1A, G1b, and internal checkers for list-append and rw-register.
- Jepsen.history is much faster to execute folds on large (e.g. 100+ million op) histories. We converted a quadratic-time loop to linear.
Bugfixes
- control.net/ip filters out loopback interfaces. Bookworm started returning 127.x.x.x interfaces from
getent ahostson some platforms.
Minor Changes
- os.debian now refers to the new
netcatpackage name. - nemesis.time allows ntpdate to fail during setup/teardown (which now happens on Bookworm).
- nemesis.time no longer tries to use
ntpdate -p, which is deprecated in Bookworm - tools.cli 1.0.219
- elle 0.1.7
- jepsen.history 0.1.1
- http-kit 2.7.0
Full Changelog: v0.3.2...v0.3.3
0.3.2
This is a relatively small release with a few minor bugfixes and tweaks.
Bugfixes
control.util/wget!correctly throws exceptions when encountering unrecoverable failures.generator.contextContexts now correctly handleassoc.
New Features
client/timeoutwraps an existing client in a new one that times out all operations after some time.
Minor Changes
net/net-devusesip, rather than/sys/class/net, for identifying network interfaces- Ring 1.10.0
- SSHJ 0.35.0