[MDEV-14892] Porting Rdb_binlog_manager to MariaDB Created: 2018-01-08 Updated: 2018-01-24 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | None |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Looking at Rdb_binlog_manager in FB/MySQL. Feature 1: store the master position in MyRocksIt stores the master position in this record:
Uses for that information:
Re #2, InnoDB in FB/MySQL has similar code in is_binlog_advanced (and MariaDB's InnoDB doesn't have it) Feature 2: keep mysql.slave_gtid_info up to dateWhen slave-gtid-info=optimized option is used, mysql.slave_gtid_info is kept up-todate directly by the storage engines. (See https://github.com/facebook/mysql-5.6/commit/0f402cb8381ba9d8e71c93085a22e5a12589b6e3) (Q: and that option is not used, both the SE and the SQL layer do the updates?) Proposed solution
|
| Comments |
| Comment by Sergei Petrunia [ 2018-01-08 ] |
|
Take-aways from discussion with Andrei:
|
| Comment by Sergei Petrunia [ 2018-01-10 ] |
|
Notes from discussion with Herman:
|
| Comment by Sergei Petrunia [ 2018-01-12 ] |
|
As part of fix for MDEV-14372, removed a possible crash when Rdb_binlog_manager attempts to read BINLOG_INFO_INDEX_NUMBER value which is empty. |