Changelog
The changelog summarizes bugfixes that are deemed relevant for users and package maintainers. Developers should consult the git commit log or GitHub issue tracker.
We use the following annotations for classifying changes:
[CONFIG] Change that breaks the config. As a package maintainer, make sure to warn your users about config breakage somehow.
[BREAK] Change that breaks interoperability or persistent state representation with previous releases. As a package maintainer, make sure to warn your users about config breakage somehow. Note that even updating the package on both sides might not be sufficient, e.g. if persistent state needs to be migrated to a new format.
[MIGRATION] Migration that must be run by the user.
[FEATURE] Change that introduces new functionality.
[BUG] Change that fixes a bug, no regressions or incompatibilities expected.
[DOCS] Change to the documentation.
0.1.1
[BUG] issue #162 commit d6304f4 : fix I/O timeout errors on variable receive rate
A significant reduction or sudden stall of the receive rate (e.g. recv pool has other I/O to do) would cause a
writev I/O timeout
error after approximately ten seconds.
0.1
This release is a milestone for zrepl and required significant refactoring if not rewrites of substantial parts of the application. It breaks both configuration and transport format, and thus requires manual intervention and updates on both sides of a replication setup.
Danger
The changes in the pruning system for this release require you to explicitly define keep rules:
for any snapshot that you want to keep, at least one rule must match.
This is different from previous releases where pruning only affected snapshots with the configured snapshotting prefix.
Make sure that snapshots to be kept or ignored by zrepl are covered, e.g. by using the regex
keep rule.
Learn more in the config docs…
Notes to Package Maintainers
Notify users about config changes and migrations (see changes attributed with [BREAK] and [MIGRATION] below)
If the daemon crashes, the stack trace produced by the Go runtime and possibly diagnostic output of zrepl will be written to stderr. This behavior is independent from the
stdout
outlet type. Please make sure the stderr output of the daemon is captured somewhere. To conserve precious stack traces, make sure that multiple service restarts do not directly discard previous stderr output.Make it obvious for users how to set the
GOTRACEBACK
environment variable toGOTRACEBACK=crash
. This functionality will cause SIGABRT on panics and can be used to capture a coredump of the panicking process. To that extend, make sure that your package build system, your OS’s coredump collection and the Go delve debugger work together. Use your build system to package the Go program in this tutorial on Go coredumps and the delve debugger , and make sure the symbol resolution etc. work on coredumps captured from the binary produced by your build system. (Special focus on symbol stripping, etc.)Consider using the
zrepl configcheck
subcommand in startup scripts to abort a restart that would fail due to an invalid config.
Changes
[BREAK] [MIGRATION] Placeholder property representation changed
The placeholder property now uses
on|off
as values instead of hashes of the dataset path. This permits renames of the sink filesystem without updating all placeholder properties.Relevant for 0.0.X-0.1-rc* to 0.1 migrations
Make sure your config is valid with
zrepl configcheck
Run
zrepl migrate 0.0.X:0.1:placeholder
[FEATURE] issue #55 : Push replication (see push job and sink job)
[FEATURE] TCP Transport
[FEATURE] issue #111: RPC protocol rewrite
[BREAK] Protocol breakage; Update and restart of all zrepl daemons is required.
Use gRPC for control RPCs and a custom protocol for bulk data transfer.
Automatic retries for network-temporary errors
Limited to errors during replication for this release. Addresses the common problem of ISP-forced reconnection at night, but will become way more useful with resumable send & recv support. Pruning errors are handled per FS, i.e., a prune RPC is attempted at least once per FS.
[FEATURE] Proper timeout handling for the SSH transport
[BREAK] Requires Go 1.11 or later.
[BREAK] [CONFIG]: mappings are no longer supported
Receiving sides (
pull
andsink
job) specify a singleroot_fs
. Received filesystems are then stored per client in${root_fs}/${client_identity}
. See Overview & Terminology for details.
[FEATURE] [BREAK] [CONFIG] Manual snapshotting + triggering of replication
[FEATURE] issue #69: include manually created snapshots in replication
[CONFIG]
manual
andperiodic
snapshotting types[FEATURE]
zrepl signal wakeup JOB
subcommand to trigger replication + pruning[FEATURE]
zrepl signal reset JOB
subcommand to abort current replication + pruning
[FEATURE] [BREAK] [CONFIG] New pruning system
The active side of a replication (pull or push) decides what to prune for both sender and receiver. The RPC protocol is used to execute the destroy operations on the remote side.
New pruning policies (see configuration documentation )
The decision what snapshots shall be pruned is now made based on keep rules
[FEATURE] issue #68: keep rule
not_replicated
prevents divergence of sender and receiver
[FEATURE] [BREAK] Bookmark pruning is no longer necessary
Per filesystem, zrepl creates a single bookmark (
#zrepl_replication_cursor
) and moves it forward with the most recent successfully replicated snapshot on the receiving side.Old bookmarks created by prior versions of zrepl (named like their corresponding snapshot) must be deleted manually.
[CONFIG]
keep_bookmarks
parameter of thegrid
keep rule has been removed
[FEATURE]
zrepl status
for live-updating replication progress (it’s really cool!)[FEATURE] Snapshot- & pruning-only job type (for local snapshot management)
[FEATURE] issue #67: Expose Prometheus metrics via HTTP (config docs)
Compatible Grafana dashboard shipping in
dist/grafana
[CONFIG] Logging outlet types must be specified using the
type
instead ofoutlet
key[BREAK] issue #53: CLI:
zrepl control *
subcommands have been made direct subcommands ofzrepl *
[BUG] Goroutine leak on ssh transport connection timeouts
[BUG] issue #81 issue #77 : handle failed accepts correctly (
source
job)[BUG] issue #100: fix incompatibility with ZoL 0.8
[FEATURE] issue #115: logging: configurable syslog facility
[FEATURE] Systemd unit file in
dist/systemd
Previous Releases
Note
Due to limitations in our documentation system, we only show the changelog since the last release and the time this documentation is built. For the changelog of previous releases, use the version selection in the hosted version of these docs at zrepl.github.io.