[MCOL-3680] mysqld will abort if Columnstore.xml is missing Created: 2019-12-18  Updated: 2020-03-13  Resolved: 2020-02-14

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.3

Type: Bug Priority: Major
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2020-1, 2020-2

 Description   

terminate called after throwing an instance of 'std::runtime_error'
  what():  Config::Config: error accessing config file /etc/columnstore/Columnstore.xml
191218 15:19:07 [ERROR] mysqld got signal 6 ;

It should error but not abort the whole server.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2020-01-27 ]

tntnatbry should this be marked for review or is there more work to do on the PR?

Comment by Gagan Goel (Inactive) [ 2020-01-27 ]

LinuxJedi This is ready for review. I was not sure how to move the issue to review in Jira.

Comment by Daniel Lee (Inactive) [ 2020-02-14 ]

Build verified: 1.4.3-1 BB nightly

engine commit:
f843e98

shutdown system and rename Columnstore.xml to Columnstore.xml.bak.

reproduced the issue in 1.4.1-1, but not in 1.4.2-1.

1.4.1-1

[root@localhost sbin]# /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=localhost.localdomain.pid
2020-02-14 22:33:50 0 [Note] /usr/sbin/mysqld (mysqld 10.4.10-4-MariaDB) starting as process 15661 ...

Aborted

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost ~]#

Verified in 1.4.3-1

1.4.3-1

/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=localhost.localdomain.pid
2020-02-14 22:35:24 0 [Note] /usr/sbin/mysqld (mysqld 10.4.12-6-MariaDB) starting as process 31939 ...

[root@localhost columnstore]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.4.12-6-MariaDB Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

Generated at Thu Feb 08 02:44:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.