在系统意外中止并可能出现磁盘写入错误之后,Maria ColumnStore无法正常工作。对InnoDB数据库的SQL查询工作正常,但对ColumnStore数据库的查询则行不通:
CREATE UNIQUE INDEX foo_index ON public.foo ((bar ->> 'bar'));
ERROR 1815 (HY000): Internal error: DBRM is not responding. Cannot accept queries
信息:
mcsadmin getsystemi
尝试重新启动DBRM失败:getsysteminfo Fri Jan 17 16:13:09 2020
System columnstore-1
System and Module statuses
Component Status Last Status Change
------------ -------------------------- ------------------------
System ACTIVE Fri Jan 17 15:41:41 2020
Module pm1 FAILED Fri Jan 17 15:41:35 2020
MariaDB ColumnStore Process statuses
Process Module Status Last Status Change Process ID
------------------ ------ --------------- ------------------------ ----------
ProcessMonitor pm1 ACTIVE Fri Jan 17 15:38:55 2020 16
ProcessManager pm1 ACTIVE Fri Jan 17 15:39:04 2020 166
DBRMControllerNode pm1 FAILED Fri Jan 17 15:44:29 2020
ServerMonitor pm1 ACTIVE Fri Jan 17 15:39:15 2020 618
DBRMWorkerNode pm1 ACTIVE Fri Jan 17 15:39:16 2020 637
PrimProc pm1 ACTIVE Fri Jan 17 15:39:18 2020 687
ExeMgr pm1 ACTIVE Fri Jan 17 15:39:23 2020 993
WriteEngineServer pm1 ACTIVE Fri Jan 17 15:39:27 2020 1079
DDLProc pm1 ACTIVE Fri Jan 17 15:39:33 2020 1367
DMLProc pm1 FAILED Fri Jan 17 15:41:51 2020 2669
mysqld pm1 ACTIVE Fri Jan 17 15:39:38 2020 495
Active Alarm Counts: Critical = 1, Major = 0, Minor = 1, Warning = 0, Info = 0
之后,我得到
mcsadmin restartProcess DBRMControllerNode pm1
在
This command restarts the processing of an application on a Module within the MariaDB ColumnStore System
Do you want to proceed: (y or n) [n]: y
**** restartprocess Failed : API Failure return in restartProcess API
尾巴中:
/var/log/mariadb/columnstore/err.log
因此,恐怕系统关闭后数据已损坏…… 有什么想法如何还原数据或仅启动DBRM引擎吗?