After conversations with MariaDB due to the gtid_domain_id deletion bug, they'd advised to actually not set gtid_domain_id at all and go for a default (0) domain_id everywhere if we're never going to use multisource or multi-master (which we only use for x2 and possibly for pcX, where we don't use GTID as we consider the data volatile).
Removing this can actually simplify a lot our issues with GTID for failovers+orchestrator.
To be able to do so we'd need to still unset it clean up all the domain_ids
We'd need to explore FLUSH BINARY LOGS DELETE_DOMAIN_ID and how to operate with it safely across all topologies.
Stage 1 - simplify gtid_slave_pos on the replicas:
- m3
- db_inventory
- x1
- codfw
- eqiad (done: dbstore1005, db1225, db1220)
Stage 2 - simplify gtid_slave_pos on intermediate masters
- m3
- db_inventory
x1
- codfw
Stage 3 - Change gtid_domain_id on the intermediate masters and FLUSH unused DOMAIN_ID
- m3
- db_inventory
x1
- codfw
Stage 4 - Change gtid_domain_id on active masters and FLUSH unused domain_id
- m3
- db_inventory
x1
- eqiad