Bug #91903 | replication filter should base on channel scopeinstead of global scope | ||
---|---|---|---|
Submitted: | 6 Aug 2018 3:34 | Modified: | 6 Aug 2018 6:19 |
Reporter: | h h | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.7.21 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql5.7, replication |
[6 Aug 2018 3:34]
h h
[6 Aug 2018 6:19]
MySQL Verification Team
Hello! Thank you for the report. If I understood correctly, you want to have per channel replication filters in multi-source replication environment but this feature is available in >=8.0.1. Quoting from manual "On a multi-source replication slave, which uses multiple replication channels to process transaction from different sources, use the FOR CHANNEL channel clause to set a replication filter on a replication channel: CHANGE REPLICATION FILTER REPLICATE_DO_DB = (d1) FOR CHANNEL channel_1; This enables you to create a channel specific replication filter to filter out selected data from a source. When a FOR CHANNEL clause is provided, the replication filter statement acts on that slave replication channel removing any existing replication filter which has the same filter type as the specified replication filters, and replacing them with the specified filter. Filter types not explicitly listed in the statement are not modified. If issued against a slave replication channel which is not configured, the statement fails with an ER_SLAVE_CONFIGURATION error. If issued against Group Replication channels, the statement fails with an ER_SLAVE_CHANNEL_OPERATION_NOT_ALLOWED error." - https://dev.mysql.com/doc/refman/8.0/en/change-replication-filter.html I see you are using 5.7, and in 5.7, we have global replication filters. This allows slave to filter out (or transform) the execution of selected replicated data from all sources when using multi-source replication. - https://mysqlhighavailability.com/the-per-channel-replication-filters/ regards, Umesh