[MCOL-472] mysqld not shutdown by shutdownsystem commands, sometimes Created: 2016-12-19 Updated: 2023-10-26 Resolved: 2017-07-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.0.6, 1.0.7 |
| Fix Version/s: | 1.0.10 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hill (Inactive) | Assignee: | David Hill (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
nightly regression test system |
||
| Description |
|
This has happened on my nightly regression test system, I haven't seen it happen on a regular install mysql. As shown below, there is a script that gets run to shutdown and run postConfigure on the nightly build. Shutdown reports suggess, but postConfigure reports error that port 3306 is in use and that is because mysqld is still running.. Because its the build machine, its probably happening because: 1. it didnt get shutdown cleanly at the start of the build [root@ip-172-30-0-119 nightly]# ./localSystemRestart.sh This command stops the processing of applications on all Modules within the MariaDB Columnstore System Checking for active transactions Stopping System... Shutting Down System... Mariab Columnstore uninstall completed /usr/local/mariadb/columnstore/bin/postConfigure This is the MariaDB Columnstore System Configuration and Installation tool. IMPORTANT: This tool should only be run on the Parent OAM Module With the no-Prompting Option being specified, you will be required to have the following: 1. Root user ssh keys setup between all nodes in the system or The Calpont Configuration Data is taken from /usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave Do you want to utilize the configuration data from the saved copy? [y,n] > ===== Setup System Server Type Configuration ===== There are 2 options when configuring the System Server Type: single and multi 'single' - Single-Server install is used when there will only be 1 server configured 'multi' - Multi-Server install is used when you want to configure multiple servers now or Select the type of System Server install [1=single, 2=multi] (1) > Performing the Single Server Install. ===== Storage Configuration = internal ===== Enter the list (Nx,Ny,Nz) or range (Nx-Nz) of DBRoot IDs assigned to module 'pm1' (1) > The MariaDB Columnstore port of '3306' is already in-use ps -ef | grep mysql |
| Comments |
| Comment by David Hill (Inactive) [ 2016-12-19 ] |
|
nighly regression test work-around, doing a 'pkill -9 mysqld' after the shutdownsystem command |
| Comment by David Hill (Inactive) [ 2016-12-22 ] |
|
same issue on a newly installed amazon system where the binary package was untarred and then the shutdown was done. [mariadb-user@ip-172-30-0-108 ~]$ 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... [mariadb-user@ip-172-30-0-108 ~]$ ps -ef | grep mysql |
| Comment by David Hill (Inactive) [ 2016-12-23 ] |
|
work-around
|
| Comment by David Hill (Inactive) [ 2017-06-05 ] |
|
found error, its a mysqld path issue in mysql-columnstore script. |
| Comment by David Hill (Inactive) [ 2017-06-05 ] |
|
changed line 313 eval $(ps -ef | grep "$COLUMNSTORE_INSTALL_DIR/mysql//sbin/mysqld" | grep -v grep | head -1 | awk ' {printf "pid=%d\n", $2}')to eval $(ps -ef | grep "$COLUMNSTORE_INSTALL_DIR/mysql//bin/mysqld" | grep -v grep | head -1 | awk '{printf "pid=%dn", $2} ') commit ba7825cce669e3b7d592a4236a1c0de40e14fbac dbcon/mysql/mysql-Columnstore | 2 +- |
| Comment by David Hill (Inactive) [ 2017-06-05 ] |
|
how to reproduce.. start MCS and then delete the pid file. ./mysql-columnstore stop |
| Comment by David Hill (Inactive) [ 2017-06-12 ] |
|
fixed for .10.10 commit 2dd99eabf7ace7cee3bf1e1452d58034ce3ce948 dbcon/mysql/mysql-Columnstore | 2 +- |
| Comment by Daniel Lee (Inactive) [ 2017-06-12 ] |
|
Build tested: Github source 1.1.0 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show Reproduced the issue in 1.0.10 source (Before Mr. Hill made the change to 1.0.10, as described in the last comment) Repeated the test using the stopsystem command in the ma console and it did not stop the mysqld process. I tried the mysql-Columnstore script and shutdownsystem and they both worked. After the shutdownsystem command, mysqld process no longer exist. There is also no pid file (I renamed during testing and removed it after). I did a startsystem. System came up and a new pid file was created. But ma did not show a pid for the mysqld process. mcsadmin> getprocessstatus MariaDB ColumnStore Process statuses Process Module Status Last Status Change Process ID |
| Comment by David Hill (Inactive) [ 2017-06-12 ] |
|
1. the missing pid is nroaml since the pid file was deleted. [root@virtualbox-centos7 db]# rm -f virtualbox-centos7.pid MariaDB ColumnStore Admin Console Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0 Critical Active Alarms: mcsadmin> getsystemi System columnstore-1 System and Module statuses Component Status Last Status Change Module pm1 DEGRADED Mon Jun 12 17:21:43 2017 MariaDB ColumnStore Process statuses Process Module Status Last Status Change Process ID Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0 This command stops the processing of applications on all Modules within the MariaDB ColumnStore System Checking for active transactions System being stopped now... mcsadmin> getsystemi System columnstore-1 System and Module statuses Component Status Last Status Change Module pm1 MAN_OFFLINE Mon Jun 12 17:22:07 2017 MariaDB ColumnStore Process statuses Process Module Status Last Status Change Process ID Active Alarm Counts: Critical = 1, Major = 1, Minor = 9, Warning = 0, Info = 0 |
| Comment by Daniel Lee (Inactive) [ 2017-06-13 ] |
|
Reopen per the issues we observed |
| Comment by David Hill (Inactive) [ 2017-06-13 ] |
|
additional fix for stopsystem issue 1.1.0 develop commit d16dfec7f7c87b95ae5a5dc210ea0dd4c5c9b71a dbcon/mysql/mysql-Columnstore | 2 +- 1.0.10 develop-1.0 commit 84741a7eb29fdd6976b1b9f96a57a677ccc2a3f0 dbcon/mysql/mysql-Columnstore | 2 +- |
| Comment by Daniel Lee (Inactive) [ 2017-07-19 ] |
|
Build verified: 1.0.10-1 |
| Comment by Daniel Lee (Inactive) [ 2017-07-19 ] |
|
Build tested: Github source 1.1.0 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show mysql processes remained after stopsystem command. 1. ColumnStore is up and running root 11194 1 0 19:43 ? 00:00:00 /bin/sh /usr/local/mariadb/columnstore/mysql//bin/mysqld_safe --datadir=/usr/local/mariadb/columnstore/mysql/db --pid-file=/usr/local/mariadb/columnstore/mysql/db/localhost.localdomain.pid --ledir=/usr/local/mariadb/columnstore/mysql//bin |
| Comment by Daniel Lee (Inactive) [ 2017-07-19 ] |
|
Reopened per my last comment. |
| Comment by Daniel Lee (Inactive) [ 2017-07-19 ] |
|
Remaining issue for 1.1.0 is being track by ticket |