Skip to content

v5.2.2

Choose a tag to compare

@github-actions github-actions released this 03 Feb 14:10
· 842 commits to master since this release

Fixes

Read and write snapshot metadata from the correct place PR #2161 .

Snapshot metadata is an optional structure of extra information saved with a snapshot, created when you call,

from arcticdb import Library
lib: Library

lib.snapshot("snap", metadata=["example", "metadata"])

lib.list_snapshots()
# {"snap": ["example", "metadata"]}

If you never call snapshot with metadata= then you are not affected by this issue. Metadata associated with a symbol is not affected by this issue.

Between v4.5.0 and v5.2.1 we mistakenly changed to save snapshot metadata in a new data format. This affects the snapshot metadata in the dict values returned by list_snapshots. Those versions incorrectly return None for snapshot metadata written by earlier versions, even if that metadata does exist.

This fix has us now check both data formats for snapshot metadata, so ArcticDB v5.2.2 onwards is compatible with snapshot metadata written by any version. We also revert to writing the metadata in its old location from v5.2.2 onwards. This means that ArcticDB clients between v4.5.0 and v5.2.1 will need to upgrade to be able to read snapshot metadata written by clients outside of those versions (otherwise they will see the metadata as None). ArcticDB clients older than v4.5.0 need to upgrade to v5.2.2+ to be able to read snapshot metadata written by versions between v4.5.0 and v5.2.1.


Full Changelog: v5.2.1...v5.2.2