0.19.4
This page documents the changes in Kannika Armory version 0.19.4.
Changelog 0.19.4
Section titled “Changelog 0.19.4”Improvements
Section titled “Improvements”- Backup: the segment reaper only runs for a topic with the
Deleteretention policy. Under theKeeppolicy, or without a policy, nothing is deleted from the storage. Before, segments that had expired under an earlierDeletepolicy 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-periodandio.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.
Bug fixes
Section titled “Bug fixes”- 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-toolscommands such asindex showandindex rebuildfinish against GCS storage with a service account key. Before, they hung while fetching the access token for the storage credentials. - Tools:
kannika-toolscommands read every segment file and every topic of a backup in S3 storage. Before, a listing stopped after the first 1,000 objects, soindex rebuildleft out segments, andindex show --allandsnapshot list --allleft out topics. - Tools:
index rebuildonly reads the segment files of the given topic in S3 storage. Before, a rebuild of the topicordersalso read the segment files of a topic whose name starts withorders, such asorders-v2. - Tools:
index rebuildonly 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 --allandsnapshot list --allonly list the topics below the configuredprefixof S3 storage. Before, they listed the topics of every backup in the bucket. - Tools:
index rebuildkeeps 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.
Documentation
Section titled “Documentation”- Add a caution against the
Deleteretention policy on compacted topics to Data retention. - Explain how to pause the topic’s Backup Stream before Rebuilding a backup’s index. The section also notes that a rebuilt index leaves out the segments’ expiration dates.
- Update the Upgrading to 0.19.x guide to 0.19.4.
- Add a Repartitioning page under Restore.
Miscellaneous Tasks
Section titled “Miscellaneous Tasks”- Bump version to 0.19.4

