[MCOL-998] MySQL replication is not replicating after installation Created: 2017-10-31 Updated: 2017-11-09 Resolved: 2017-11-09 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | 1.1.1 |
| Fix Version/s: | 1.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-22 |
| Description |
|
Build tested: 1.0.12-1 Github source, 1.1.1-1 (rpm released QA today) /root/columnstore/mariadb-columnstore-server Merge pull request #69 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #304 from mariadb-corporation/ Stack configurations tested: 2pm combo, 2umpm Install the replication stack, verified server-id are correct, but databases are not replicated. Shutdownsystem and startsystem, system seemed to be normal. But mcsmysql on um2 failed due to missing mysql.sock file. I verified the mysqld process is running and supposed to be using the mysql.sock. [root@localhost ~]# mcsmysql Another strange behavior I observed: Thinking that some processes may not have been started, I tried the enableMySQLRep commands while MySQLRep also has been enabled and got api errors: mcsadmin> enablemysqlreplication MariaDB ColumnStore Replication Feature is already enabled Enter the 'User' Password or 'ssh' if configured with ssh-keys
The command worked fine with MySQLRep is not enabled. |
| Comments |
| Comment by David Hill (Inactive) [ 2017-11-01 ] | ||||||||||||||||||||||||||||||
|
Testing on Amazon EC2 with latest Centos 7 build, same as Daniel was using. Issue number #1 - Stack configurations tested: 2pm combo, 2umpm
1. performed clean install on a 2 um/pm with local storage and mysqlrep enabled MariaDB [(none)]> show databases;
---------------------
--------------------- pm2 MariaDB [(none)]> show databases;
---------------------
--------------------- MariaDB [(none)]> 2. create database pm1 and its replicated on pm2 pm1 MariaDB [(none)]> create database david; pm2 MariaDB [(none)]> show databases;
---------------------
--------------------- 3. create table on pm1 and its replicated on pm2 pm1 MariaDB [(none)]> use david pm2 MariaDB [(none)]> use david
-----------------
----------------- | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-01 ] | ||||||||||||||||||||||||||||||
|
Issue 2 - Shutdownsystem and startsystem, system seemed to be normal. But mcsmysql on um2 failed due to missing mysql.sock file. I verified the mysqld process is running and supposed to be using the mysql.sock.
1. did a shutdown on pm1, mysqld not running on pm1 or pm2 afterwards. running commands from pm1 ma shutd y This command stops the processing of applications on all Modules within the MariaDB ColumnStore System Checking for active transactions Stopping System... Shutting Down System... [root@ip-172-30-0-161 ~]# ps -ef | grep mysqld 2. did a startsystem pm1 ma startsystem Calpont1 System being started, please wait....................... [root@ip-172-30-0-161 ~]# mcsmysql Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. pm2 mcsmysql Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-01 ] | ||||||||||||||||||||||||||||||
|
Issue 3 - Thinking that some processes may not have been started, I tried the enableMySQLRep commands while MySQLRep also has been enabled and got api errors:
1. enableMySqlRep from pm1 console - worked mcsadmin> enableMySQLReplication MariaDB ColumnStore Replication Feature is already enabled Enter the 'User' Password or 'ssh' if configured with ssh-keys Successful Enabling of MariaDB ColumnStore Replication MariaDB ColumnStore Replication Master Node is pm1 2. disableMySQLReplication - worked disableMySQLReplication Successful Disable of MariaDB ColumnStore Replication | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-01 ] | ||||||||||||||||||||||||||||||
|
So I couldn't reproduce the issue Daniels had. He is running on VMS, I'm running on Amazon EC2. My local workstation VMs don't work to the point I can do multi-node testing. So cant try to reproduce in VM environment. I tried with both binary and rpm package installs, root install Maybe someone else can try with VMs. Centos 7. | ||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-11-01 ] | ||||||||||||||||||||||||||||||
|
I have a feeling that it is a timing issue in 1.1.1-1. I did the exact same test using 1.1.0-1 beta, it worked fine. | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-08 ] | ||||||||||||||||||||||||||||||
|
Fixed in develop-1.1 commit c84ea561e1b6006b526b370bc5f8ed5c4b2285fb Added in binlog_fotmat=row into the released my.cnf . | ||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-11-08 ] | ||||||||||||||||||||||||||||||
|
Build verified: 1.1.2 Git source /root/columnstore/mariadb-columnstore-server Update README.md updated version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine rechecking back in version of calpontsystemcatalog, accidental commit old versions Tested with 2pm.combo and 1um2pm.localquery 2pm.combo worked 1um2pm.localquery is not replicating, including database and tables. Restarting the stack did not help. "show slave status\G" on PMs returned empty set. I verified the bingo_format=ROW statement in the my.cnf file in both UM and PMs. When I tried enablemysqlreplication, replication is working. "Show slave status\G" on PMs now returned normal status output. Database and table are now replicated to PMs. mcsadmin> enablemysql MariaDB ColumnStore Replication Feature is already enabled Enter the 'User' Password or 'ssh' if configured with ssh-keys Successful Enabling of MariaDB ColumnStore Replication MariaDB ColumnStore Replication Master Node is um1 | ||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-11-08 ] | ||||||||||||||||||||||||||||||
|
postConfigure reported the following error: Found this error in PM1's debug.log Nov 8 22:57:46 localhost writeengine[9240]: 46.787258 |0|0|0| C 19 CAL0060: dbbuilder system catalog error: Creating TableName column OID: 1001 The File already exists. [BRM error status: UNKNOWN (255)] But create database and tables, DDL, DML, and cpimport all worked on UM1, just not replicating This is a new installation and no system catalog should have existed. | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-09 ] | ||||||||||||||||||||||||||||||
|
On my 1um / 2pm with local query, salves were setup on pm1 and pm2 and the replication was working correctly... I couldn't reproduce the issue Daniel reported. | ||||||||||||||||||||||||||||||
| Comment by David Hill (Inactive) [ 2017-11-09 ] | ||||||||||||||||||||||||||||||
|
on local query 1um / 2pm install, infinidb_local_query=0 and it should be 1 on um1 | ||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-11-09 ] | ||||||||||||||||||||||||||||||
|
The dbbuilder system catalog error does not always happen. It happened 1 out of 3 installation this morning. When it does happen, postConfigure skips replication setup and cause the test for this ticket to fail. I have created | ||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-11-09 ] | ||||||||||||||||||||||||||||||
|
Build verified: 1.1.2 GitHub source /root/columnstore/mariadb-columnstore-server Update README.md updated version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #313 from mariadb-corporation/ |