Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
Provide a mechanism to filter replication events on the slave replication
server based on domain_id.
New master definitions:
(1) DO_DOMAIN_IDS = (N[,N])
- Accepts a comma-separated list of domain_ids, the replication events of
which will be kept. - If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the
existing list of domain ids (if any) would be preserved. - DO_DOMAIN_IDS=() can be used to clear the list.
- The list should show in SHOW MASTER STATUS output and master_info file.
- On restart, the list should automatically get populated from master_info.
(2) IGNORE_DOMAIN_IDS = (N[,N])
- Accepts a comma-separated list of domain_ids, the replication events of
which will be filtered out. - If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the
existing list of domain ids (if any) would be preserved. - IGNORE_DOMAIN_IDS=() can be used to clear the list.
- The list should show in SHOW MASTER STATUS output and master_info file.
- On restart, the list should automatically get populated from master_info.
Additional notes:
- The list preservation rule is consistent with IGNORE_SERVER_IDS.
- Both the lists (DO_ & IGNORE_) cannot be non-empty at the same time.
- CHANGE MASTER TO command would fail with ER_MASTER_INFO if it tries
to set both the lists.
Examples:
CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ;
CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ;
CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ;
$ tail -2 master.info
do_domain_ids=0
ignore_domain_ids=3 1 2 3
Attachments
Issue Links
Activity
Assignee | Nirbhay Choubey [ nirbhay_c ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Description |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. Someting like: --replicate-do-domain-id=N --replicate-ignore-domain-id=N |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info ignore_domain_ids=3 1 2 3 do_domain_ids=1 99 |
Description |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info ignore_domain_ids=3 1 2 3 do_domain_ids=1 99 |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info ignore_domain_ids=3 1 2 3 do_domain_ids=0 |
Description |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info ignore_domain_ids=3 1 2 3 do_domain_ids=0 |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info do_domain_ids=0 ignore_domain_ids=3 1 2 3 |
Description |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info do_domain_ids=0 ignore_domain_ids=3 1 2 3 |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info do_domain_ids=0 ignore_domain_ids=3 1 2 3 |
Assignee | Nirbhay Choubey [ nirbhay_c ] | Kristian Nielsen [ knielsen ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Kristian Nielsen [ knielsen ] | Nirbhay Choubey [ nirbhay_c ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Assignee | Nirbhay Choubey [ nirbhay_c ] | Kristian Nielsen [ knielsen ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Kristian Nielsen [ knielsen ] | Nirbhay Choubey [ nirbhay_c ] |
Fix Version/s | 10.1 [ 16100 ] |
Description |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * This list would take precedence over IGNORE_DOMAIN_IDS list. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info do_domain_ids=0 ignore_domain_ids=3 1 2 3 |
Provide a mechanism to filter replication events on the slave replication server based on domain_id. New master definitions: (1) DO_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be kept. * If a CHANGE MASTER command is executed without DO_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * DO_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. (2) IGNORE_DOMAIN_IDS = (N[,N]) * Accepts a comma-separated list of domain_ids, the replication events of which will be filtered out. * If a CHANGE MASTER command is executed without IGNORE_DOMAIN_IDS, the existing list of domain ids (if any) would be preserved. * IGNORE_DOMAIN_IDS=() can be used to clear the list. * The list should show in SHOW MASTER STATUS output and master_info file. * On restart, the list should automatically get populated from master_info. Additional notes: * The list preservation rule is consistent with IGNORE_SERVER_IDS. * Both the lists (DO_ & IGNORE_) cannot be non-empty at the same time. * CHANGE MASTER TO command would fail with ER_MASTER_INFO if it tries to set both the lists. Examples: CHANGE MASTER TO .. IGNORE_DOMAIN_IDS= (1,2,3) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= (99) .. ; CHANGE MASTER TO .. DO_DOMAIN_IDS= () .. ; $ tail -2 master.info do_domain_ids=0 ignore_domain_ids=3 1 2 3 |
Component/s | Replication [ 10100 ] | |
Fix Version/s | 10.1.2 [ 15801 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10002 ] | Closed [ 6 ] |
Workflow | MariaDB v2 [ 52803 ] | MariaDB v3 [ 64681 ] |
Workflow | MariaDB v3 [ 64681 ] | MariaDB v4 [ 132393 ] |