Skip to content

mnesia:add_backend_type(Alias, Module) after,mnesia:install_fallback("bk.BUP") error #8045

Open
@axpxp

Description

@axpxp

Describe the bug
mnesia:add_backend_type(Alias, Module) after,If the table is empty,Everything is fine,because Module:init_backend first call.
mnesia:add_backend_type(Alias, Module) after,If there's data in the table,mnesia:backup("bk.BUP") after mnesia:install_fallback("bk.BUP") after mnesia:start(),There will be bugs,because Module:init_backend not call.

To Reproduce
mnesia_rocksdb:create_schema([node()]),
mnesia:start(),
mnesia:add_backend_type(Type, Module)
mnesia:create_table(Name, [{Type, [node()]}),
insert some datas,
mnesia:backup("bk.BUP")
mnesia:install_fallback("bk.BUP")
mnesia:start()---Error reported here

Expected behavior
Backup works fine, thank you

Affected versions
OTP 25 26.

Additional context

Metadata

Metadata

Assignees

Labels

PlannedFocus issue added in sprint planningbugIssue is reported as a bughelp wantedIssue not worked on by OTP; help wanted from the communitypriority:lowstalledwaiting for input by the Erlang/OTP teamteam:PSAssigned to OTP team PS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions