[MDEV-19371] Implement binlog_expire_logs_seconds for purging of binary logs Created: 2019-04-30 Updated: 2021-12-21 Resolved: 2021-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Fix Version/s: | 10.6.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Muhammad Irfan | Assignee: | Sujatha Sivakumar (Inactive) |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | replication, upstream-fixed | ||
| Issue Links: |
|
||||||||||
| Sub-Tasks: |
|
||||||||||
| Description |
|
Oracle MySQL implemented binary log expiration period in seconds via binlog_expire_logs_seconds variable and expire_logs_days is deprecated in MySQL 8. |
| Comments |
| Comment by Andrei Elkin [ 2019-07-09 ] | |||||||||||||||
|
ralf.gebhardt@mariadb.com This one looks pretty easy cherry-picking of WL#9237: Add a new variable binlog_expire_logs_seconds
| |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-02-03 ] | |||||||||||||||
|
Following commits need to be backported. 1)
2)
3)
| |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-02-09 ] | |||||||||||||||
|
Hello Andrei, Can you please review the changes for There is only one minor change between upstream patch and its corresponding MariaDB Patch: https://github.com/MariaDB/server/commit/7ede75e1d2279e0cce3a27a93cc337d29af0fad7 BuildBot: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.6-sujatha Thank you | |||||||||||||||
| Comment by Andrei Elkin [ 2021-04-07 ] | |||||||||||||||
|
Suggested to extend the work content for the current user to stay with | |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-05-03 ] | |||||||||||||||
|
Hello Andrei, I have addressed your review comments. Please review the latest changes. Patch: https://github.com/MariaDB/server/commit/14ba1d3c29880314ca61ad2feafe53a1d4c8a3da BuildBot Testing: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.6-sujatha Thank you. | |||||||||||||||
| Comment by Andrei Elkin [ 2021-05-05 ] | |||||||||||||||
|
The patch looks close to be fine. I left few notes on 14ba1d3c298. | |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-05-07 ] | |||||||||||||||
|
Hello Andrei, Thank you for the review comments. Please review them. https://github.com/MariaDB/server/commit/888af81f942e3d537b99f073d9504b4c8a7323b8 Thank you. | |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-05-10 ] | |||||||||||||||
|
Patch was approved by Elkin and Brandon. | |||||||||||||||
| Comment by Andrei Elkin [ 2021-05-10 ] | |||||||||||||||
|
For the documentation, the patch 49ff2cbff4 The changes to --help for expire_log_days can be seen in the patch:
The upstream new binlog_expire_logs_seconds is described as + "If non-zero, binary logs will be purged after " the type is double, | |||||||||||||||
| Comment by Ian Gilfillan [ 2021-05-11 ] | |||||||||||||||
|
I suggest not using the word "alias" in the descriptions, as this implies that they are the same, and if a user doesn't look beyond that, they could end up specifying the wrong units. You could replace it with the word "linked", or "forms of aliases". | |||||||||||||||
| Comment by Andrei Elkin [ 2021-05-11 ] | |||||||||||||||
|
Thanks, Ian! Agreed here. sujatha.sivakumar, could you please pick it up to a patch that fixes the valid ranges? | |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-05-11 ] | |||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2021-05-11 ] | |||||||||||||||
|
Hello Elkin Please find the following post push fixes. https://github.com/MariaDB/server/commit/2ea32e65a34ba065b3dd63d4c80071404dad1ca8 Please review them. Thank you. |