Merge pull request #11158 from lafirest/fix/wait_table_in_retainer
fix(emqx_retainer): wait for Mria tables
This commit is contained in:
commit
be1a4c89a5
|
@ -127,6 +127,7 @@ create_table(Table, RecordName, Attributes, Type, StorageType) ->
|
|||
{storage_properties, StoreProps}
|
||||
]),
|
||||
ok = mria_rlog:wait_for_shards([?RETAINER_SHARD], infinity),
|
||||
ok = mria:wait_for_tables([Table]),
|
||||
case mnesia:table_info(Table, storage_type) of
|
||||
Copies ->
|
||||
ok;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Wait for Mria table when the mnesia backend of retainer starts to avoid a possible error of the retainer when joining a cluster.
|
Loading…
Reference in New Issue