fix(emqx_retainer): wait for Mria tables
@@ -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.