Skip to content

0.19.4

This page documents the changes in Kannika Armory version 0.19.4.

  • Backup: the segment reaper only runs for a topic with the Delete retention policy. Under the Keep policy, or without a policy, nothing is deleted from the storage. Before, segments that had expired under an earlier Delete policy were still removed.
  • Backup: after a reaper check, the topic’s index drops the deleted segments without waiting for a new record. Before, the index kept listing them until the next segment closed.
  • Backup: the reaper also deletes orphaned segment files from among the files it checked before, once they are older than the grace period. Each check lists up to 10,000 of those files, and the next check goes on from there. Before, a check only looked at segment files that came after the last file it had checked.
  • Backup: when a topic’s backup stops or restarts, its reaper has stopped before the topic’s storage lease is released. A storage call the reaper was making at that moment is dropped. Before, the reaper could go on making storage calls for a moment after the lease was released.
  • Backup: a backup on GCS storage whose lease refresh finds that another backup took the storage lease of a topic stops writing that topic, without writing its index again. Before, a backup that stalled for longer than its lease stays valid (about 15 minutes) kept refreshing the lease after another backup had taken the topic over, so both wrote to the same topic storage, and the stalled backup deleted the lease of the other one when it stopped. Two backups that took over an expired lease at the same moment could also both get it.
  • Backup: a backup on S3 storage whose lease refresh finds that another backup holds the storage lease of a topic stops writing that topic, without writing its index again. Before, a backup that stalled for longer than its lease stays valid (about 15 minutes) kept writing segments and the index next to the backup that had taken the topic over, and the two overwrote each other’s index.
  • Backup: a backup on Azure Blob Storage whose lease renewal is refused because another backup took the storage lease of a topic stops writing that topic, without writing its index again. Before, a backup that stalled for longer than its lease lasts (60 seconds) wrote its index once more when its renewal was refused, over the index of the backup that had taken the topic over.
  • Backup: the grace period and the batch size of the segment reaper can be set per Backup with the annotations io.kannika/segment-reaper-grace-period and io.kannika/segment-reaper-batch-size. Without them, the reaper keeps the grace period of one hour and takes at most 10,000 segments per check. See Configuring the segment reaper.
  • Console: the Backups overview shows a warning icon for a Backup with topics in back-off, and the error icon when any topic is in error. The icon’s tooltip gives the number of topics in error and in back-off, and clicking the icon opens the Backup’s Topics tab filtered on those topics. Before, the overview only showed topics in error.
  • Console: a topic in back-off keeps showing as back-off when its Backup is opened after a while. Before, it showed as failed for a few seconds while the Backup’s pod was still running, until the API had fetched the Backup’s metrics again.
  • Backup: the reaper sends fewer requests to the storage for a topic without snapshots. Once it has read the topic’s snapshot manifest in a backup attempt, it no longer reads it before each of its storage calls.
  • Tools: kannika-tools commands such as index show and index rebuild finish against GCS storage with a service account key. Before, they hung while fetching the access token for the storage credentials.
  • Tools: kannika-tools commands read every segment file and every topic of a backup in S3 storage. Before, a listing stopped after the first 1,000 objects, so index rebuild left out segments, and index show --all and snapshot list --all left out topics.
  • Tools: index rebuild only reads the segment files of the given topic in S3 storage. Before, a rebuild of the topic orders also read the segment files of a topic whose name starts with orders, such as orders-v2.
  • Tools: index rebuild only reads a file in S3 storage as a segment when its key is exactly the key of a segment file of the topic. Before, it also read a file with a name such as <segment id>.kan.kan, and a file in a subdirectory of the topic, as a segment of the topic.
  • Tools: index show --all and snapshot list --all only list the topics below the configured prefix of S3 storage. Before, they listed the topics of every backup in the bucket.
  • Tools: index rebuild keeps the topic id and the rest of the metadata of the stored index, and only replaces its list of segments. For a versioned snapshot without an index file, it takes the topic id from the snapshot’s manifest entry. Before, a rebuilt index had no topic id, so the Backup could no longer detect that its topic had been deleted and recreated.
  • Bump version to 0.19.4