Closed maria-farooq closed 7 years ago
@deruelle @leftyb This table can not be removed for now. It has info of live slaves connected to this which is used in resource clean up. For example a master instance DOES NOT clean up master conference/ivr endpoint if there are active slaves mixing the media through it. However Here are 2 proposals !
@maria-farooq let's go with the best way then ;)
ok @deruelle
delete from restcomm_media_resource_broker_entity where ms_id=local_ms_id
) since on startup of a node we should not have any active slave records so if you find some? clean them!slave_ms_bridge_ep_id
, slave_ms_cnf_ep_id
are never used so remove them.Here is sample data from DB.
mysql> select * from restcomm_media_resource_broker_entity;
+------------------------------------+-------------+-----------------------+--------------------+---------------------+
| conference_sid | slave_ms_id | slave_ms_bridge_ep_id | slave_ms_cnf_ep_id | is_bridged_together |
+------------------------------------+-------------+-----------------------+--------------------+---------------------+
| CF03a1857672fa42288c1cdb596289fa06 | 3 | NULL | NULL | 1 |
| CF49a56d715e9b4877bd176b4bff03ac29 | 3 | NULL | NULL | 1 |
| CFd81873559fdb4387b76920ae1b178fc3 | 2 | NULL | NULL | 1 |
+------------------------------------+-------------+-----------------------+--------------------+---------------------+
fixed inside #1898
Problem: Exception comes when an unclean slave record exists in mrb table Solution: We should remove MRB table (restcomm_media_resource_broker_entity) since its part of initial design which later changed, double check if it is still needed otherwise remove it.