Skip to content

khepri_mnesia_migration 0.2.1

Compare
Choose a tag to compare
@dumbbell dumbbell released this 27 Oct 14:02
· 54 commits to main since this release
v0.2.1
56d7d12

At this point, khepri_mnesia_migration should be considered Alpha and not production ready. The API will likely evolve and future releases will likely introduce breaking changes. The goal of this release is to make it easy for anyone to try it and possibly give feedback.

What's new in khepri_mnesia_migration 0.2.1

This release contains mostly bug fixes and internal improvements, following
more extensive testing in RabbitMQ.

  • is_migration_finished/{1,2} returns a meaningful return value even if the Khepri store is stopped (#4).
  • rollback/2 waits for the Khepri projection to be updated before returning (#5). This makes sure is_migration_finished/2 will return false immediately after a rollback.
  • Correctly handle a no_exists abort reason returned by the Mnesia function in mnesia_to_khepri:handle_fallback/4 (#6).
  • Protect against infinite loop in mnesia_to_khepri:handle_fallback/4 (#7).
  • Check record validity before running the mnesia_to_khepri callback module's copy_to_khepri/3 function (#8).

Download

khepri_mnesia_migration 0.2.1 is available from Hex.pm: https://hex.pm/packages/khepri_mnesia_migration/0.2.1

Upgrade

Using Rebar:

  1. Update your rebar.config:

    %% In rebar.config
    {deps, [{khepri_mnesia_migration, "0.2.1"}]}.
  2. Run rebar3 upgrade khepri_mnesia_migration.

Using Erlang.mk:

  1. Update your Makefile:

    %% In your Makefile
    dep_khepri_mnesia_migration = hex 0.2.1
  2. Remove the deps/khepri_mnesia_migration directory. The new version will be fetched the next time you build your project.

Documentation

The documentation for khepri_mnesia_migration 0.2.1 is available on Hex.pm.