[MCOL-787] run command to create system tables after startsystem Created: 2017-06-26 Updated: 2017-12-01 Resolved: 2017-09-13 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ProcMgr |
| Affects Version/s: | 1.0.10, 1.1.0 |
| Fix Version/s: | 1.0.11, 1.1.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | David Hill (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-13 |
| Description |
|
A few times a system has failed to startup correctly because postConfigure didn't run to successful completion due to some install issue. When this happens, user might correct the problem then run "mcsadmin startsystem" to bring the system up. But when it done this way, the System Catalog isn't created and all create table will fail. If the system catalog already exist when this command is done, nothing is effected. Both ProcMgr and the script checks if the system catalog already exist and it will bypass running the script. |
| Comments |
| Comment by David Hill (Inactive) [ 2017-06-26 ] |
|
how to test on a fresh install. ===== MariaDB ColumnStore System Startup ===== System Installation is complete. If any part of the install failed, Would you like to startup the MariaDB ColumnStore System? [y,n] You choose not to Start the MariaDB ColumnStore Software at this time. |
| Comment by David Hill (Inactive) [ 2017-06-26 ] |
|
this will show up in the pm1 debug logs Jun 26 14:53:42 ip-172-30-0-176 ProcessManager[9439]: 42.996536 |0|0|0| D 17 CAL0000: Set System State = ACTIVE what is logging after a future startsystem or restartsystem Jun 26 14:56:41 ip-172-30-0-176 ProcessMonitor[9287]: 41.583212 |0|0|0| I 18 CAL0000: MSG RECEIVED: Check and Build System Tables |
| Comment by David Hill (Inactive) [ 2017-06-26 ] |
|
1 line code fix in ProcMgr fixed in 1.0.x branch commit 3b1864621fa6cb6a04245ee62d0c2464433868c1 procmgr/processmanager.cpp | 3 +++ fix in 1.1.0 branch commit b424a02c2e431be6f4cf39c12f0c7fd0155c23f5 procmgr/processmanager.cpp | 3 +++ |
| Comment by Daniel Lee (Inactive) [ 2017-06-28 ] |
|
Build verified: Github source for 1.0.10 and 1.1.0 Verified both root and non-root install for 1um2pm configuration. 1.0.10-1 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show 1.1.0-1 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show |
| Comment by David Hill (Inactive) [ 2017-07-18 ] |
|
problem in ubuntu16 VM testing, both postConfigure and procmgr are trying to run dbbuilder 7 causing the startup to hang root 10796 7327 0 14:37 pts/19 00:00:00 sh -c /usr/local/mariadb/columnstore/bin/dbbuilder 7 > /tmp/dbbuilder.log ----- Starting MariaDB ColumnStore on local server ----- MariaDB ColumnStore successfully started MariaDB ColumnStore Database Platform Starting, please wait ....... DONE |
| Comment by David Hill (Inactive) [ 2017-07-19 ] |
|
fix - added check in ProcMon fucntion that builds the system catalog to not run if postConfigure or dbbuilder executibles are running. This function is called by ProcMgr at the end of the successfull startsystem. commit 6a0bceaa9bed412912691ed775da82d54bf8a6a9 procmgr/processmanager.cpp | 9 ++++++++- |
| Comment by David Hill (Inactive) [ 2017-07-19 ] |
|
This would be the debug log to show that ProcMgr did the call, but its didn't try to do the build. This return code is ALREADY_IN_PROGRESS. Jul 19 09:45:13 virtualbox-centos7 ProcessMonitor[3937]: 13.443277 |0|0|0| I 18 CAL0000: MSG RECEIVED: Check and Build System Tables |
| Comment by David Hill (Inactive) [ 2017-07-19 ] |
|
this is what you would see on startsystem when the catalog already existed Jul 19 09:56:19 virtualbox-centos7 ProcessMonitor[8296]: 19.114912 |0|0|0| I 18 CAL0000: MSG RECEIVED: Check and Build System Tables |
| Comment by David Hill (Inactive) [ 2017-07-27 ] |
|
checkins for 1.1.0 commit f17c2e1820dd4379af8b52f82519ea9bb38aaa0c procmgr/processmanager.cpp | 11 ++++++++--- |
| Comment by Daniel Lee (Inactive) [ 2017-09-13 ] |
|
Build verified: 1.1.0-1, 1.0.11-1 |