Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
In MariaDB the UNTIL keyword is inclusive.
"The replica will start replication from the current GTID position, run up to and including the event with the GTID specified, and then stop. "
https://mariadb.com/kb/en/gtid/#start-slave-until-master_gtid_posxxx
Keyword UNTIL origin is form imperative languages, where UNTIL is the end condition of a loop.
Depending from the position of the counter (before or after reply), the UNTIL condition will be processed or not.
SQL is a declarative language, so the counter position in the loop is hidden, so maybe UNTIL is different implemented in different databases (if used in an SQL-statement, not procedures). Procedures are also based on imperative paradigm.
So I suggest to add keywords EXCLUSIVE and INCLUSIVE.
The default would be INCLUSIVE, which is the current MariaDB behaviour.
Example:
START SLAVE UNTIL EXCLUSIVE master_gtid_pos = <GTID position>;
|
Attachments
Issue Links
- causes
-
MDEV-32184 rpl.rpl_gtid_until_before_after_gtids regularly times out
-
- Closed
-
- is blocked by
-
MDEV-32184 rpl.rpl_gtid_until_before_after_gtids regularly times out
-
- Closed
-
- mentioned in
-
Page Failed to load
-
Page Failed to load
-
Page Failed to load
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue relates to TOOLS-30 [ TOOLS-30 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32651 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32655 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32661 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32651 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32676 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32690 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32716 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32723 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32744 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32904 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 32926 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33020 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33118 ] |
Assignee | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] |
Assignee | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] | Richard Stracke [ richard ] |
Status | Open [ 1 ] | Needs Feedback [ 10501 ] |
Status | Needs Feedback [ 10501 ] | Open [ 1 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33208 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33240 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33268 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33300 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33404 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33419 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33603 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33629 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33655 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33724 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33736 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33803 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33819 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33903 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 33917 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34003 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34019 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34036 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34052 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34081 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34104 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34117 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34225 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34234 ] |
Description |
In MariaDB the until keyword is inclusive.
"The replica will start replication from the current GTID position, run up to and including the event with the GTID specified, and then stop. " https://mariadb.com/kb/en/gtid/#start-slave-until-master_gtid_posxxx Keyword "UNTIL" origin is form imperative languages, where UNTIL is the end condition of a loop. Depending from the position of the counter (before or after reply), the UNTIL condition wlll be processed or not. SQL is a declarative language, so the counter position in the loop is hidden, so maybe "UNTIL" is different implemented in different Databases. (if used in a SQL-statement, not procedures. Procedures also based on imperative paradigma. So I suggest to add keywords "exclusive" and "inclusive". Default is "inclusive" , which is the current MariaDB behaviour. example: {code:java} START SLAVE UNTIL EXLUSIVE master_gtid_pos = <GTID position> {code} |
In MariaDB the until keyword is inclusive. "The replica will start replication from the current GTID position, run up to and including the event with the GTID specified, and then stop. " https://mariadb.com/kb/en/gtid/#start-slave-until\-master_gtid_posxxx Keyword "UNTIL" origin is form imperative languages, where UNTIL is the end condition of a loop. Depending from the position of the counter (before or after reply), the UNTIL condition wlll be processed or not. SQL is a declarative language, so the counter position in the loop is hidden, so maybe "UNTIL" is different implemented in different Databases. (if used in a SQL\-statement, not procedures. Procedures also based on imperative paradigma. So I suggest to add keywords "exclusive" and "inclusive". Default is "inclusive" , which is the current MariaDB behaviour. example: {code:java} START SLAVE UNTIL EXLUSIVE master_gtid_pos = <GTID position> {code} |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34249 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34263 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34313 ] |
Assignee | Richard Stracke [ richard ] | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34437 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34445 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34462 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34485 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34504 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34515 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34529 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34539 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34601 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34612 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34623 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34641 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34656 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34676 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34694 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34714 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34810 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34826 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34844 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34914 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34930 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34947 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34965 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34992 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35108 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35223 ] |
Assignee | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] | Andrei Elkin [ elkin ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35253 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35275 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35296 ] |
Assignee | Andrei Elkin [ elkin ] | Brandon Nesterenko [ JIRAUSER48702 ] |
Fix Version/s | 11.2 [ 28603 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35316 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35407 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35430 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35447 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35460 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35473 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35498 ] |
Fix Version/s | 11.3 [ 28565 ] | |
Fix Version/s | 11.2 [ 28603 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35608 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35628 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35806 ] |
Summary | Add keywords "exclusive" and "inclusive" for START SLAVE UNTIL | Add keywords "SQL_BEFORE_GTIDS" and "SQL_AFTER_GTIDS" for START SLAVE UNTIL |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35817 ] |
Assignee | Brandon Nesterenko [ JIRAUSER48702 ] | Andrei Elkin [ elkin ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35903 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35907 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35917 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35934 ] |
Assignee | Andrei Elkin [ elkin ] | Brandon Nesterenko [ JIRAUSER48702 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Assignee | Brandon Nesterenko [ JIRAUSER48702 ] | Roel Van de Paar [ roel ] |
Description |
In MariaDB the until keyword is inclusive. "The replica will start replication from the current GTID position, run up to and including the event with the GTID specified, and then stop. " https://mariadb.com/kb/en/gtid/#start-slave-until\-master_gtid_posxxx Keyword "UNTIL" origin is form imperative languages, where UNTIL is the end condition of a loop. Depending from the position of the counter (before or after reply), the UNTIL condition wlll be processed or not. SQL is a declarative language, so the counter position in the loop is hidden, so maybe "UNTIL" is different implemented in different Databases. (if used in a SQL\-statement, not procedures. Procedures also based on imperative paradigma. So I suggest to add keywords "exclusive" and "inclusive". Default is "inclusive" , which is the current MariaDB behaviour. example: {code:java} START SLAVE UNTIL EXLUSIVE master_gtid_pos = <GTID position> {code} |
In MariaDB the {{UNTIL}} keyword is inclusive.
"The replica will start replication from the current GTID position, run up to and including the event with the GTID specified, and then stop. " https://mariadb.com/kb/en/gtid/#start-slave-until\-master_gtid_posxxx Keyword {{UNTIL}} origin is form imperative languages, where {{UNTIL}} is the end condition of a loop. Depending from the position of the counter (before or after reply), the {{UNTIL}} condition will be processed or not. SQL is a declarative language, so the counter position in the loop is hidden, so maybe {{UNTIL}} is different implemented in different databases (if used in an SQL\-statement, not procedures). Procedures are also based on imperative paradigm. So I suggest to add keywords {{EXCLUSIVE}} and {{INCLUSIVE}}. The default would be {{INCLUSIVE}}, which is the current MariaDB behaviour. Example: {code:sql} START SLAVE UNTIL EXCLUSIVE master_gtid_pos = <GTID position>; {code} |
Link | This issue is part of TODO-4253 [ TODO-4253 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35949 ] |
Link |
This issue causes |
Link |
This issue is blocked by |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35973 ] |
Labels | Preview_11.3 |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36011 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36108 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36139 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36171 ] |
Assignee | Roel Van de Paar [ roel ] | Brandon Nesterenko [ JIRAUSER48702 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Comment | [ Testing completed ] |
Fix Version/s | 11.3.1 [ 29416 ] | |
Fix Version/s | 11.3 [ 28565 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36208 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36218 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36224 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36246 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36262 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35903 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 35907 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36685 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36685 ] |
Zendesk Related Tickets | 201658 201791 122248 | |
Zendesk active tickets | 201658 201791 |
Zendesk active tickets | 201658 201791 | 201658 |
Thanks serg for the tip. Indeed if the user wants the exclusive handling of, say a gtid 0-1-5, START SLAVE UNTIL master_gtid_pos = "0-1-4" does the trick.
Notice gtid = 0-1-4 does not have to exist.