[MCOL-4985] Software update of Columnstore overwrites datafiles, Internal error: MCS-2006 Created: 2022-02-03  Updated: 2023-10-04  Resolved: 2023-09-22

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: None
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Edward Stoever Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None


 Description   

After software update, we see this:

mariadb -ABNe "select product_name from inventory.products limit 1"
ERROR 1815 (HY000) at line 1: Internal error: MCS-2006: 'inventory.products' does not exist in Columnstore.

Full example:

mariadb -ABNe "select version();"
10.5.13-9-MariaDB-enterprise
 
mariadb -ABNe "show status like 'Columnstore_version'"
Columnstore_version     5.6.3
 
grep -i service /etc/columnstore/storagemanager.cnf | grep '\='
service = LocalStorage
 
[ -f "/etc/columnstore/cmapi_server.conf" ] && echo "cmapi is installed" || echo "cmapi is not installed"
cmapi is not installed
 
mariadb -ABNe "select TABLE_SCHEMA, TABLE_NAME, ENGINE from information_schema.tables where TABLE_NAME='products';"
inventory       products        Columnstore
 
mariadb -ABNe "select product_name from inventory.products limit 1"
e0c1f3e6
 
systemctl stop mariadb-columnstore
systemctl stop mariadb
apt remove "*mariadb*"
apt remove "galera*"
 
chmod 750 mariadb_es_repo_setup
./mariadb_es_repo_setup --token="<YOUR CUSTOMER TOKEN HERE>" --apply --mariadb-server-version="10.6"
rm /etc/apt/sources.list.d/mariadb.*old*
apt update
touch /tmp/t.txt
apt install mariadb-client mariadb-server mariadb-backup mariadb-plugin-columnstore libmariadb3
 
# if no changes were made to datafiles in software update, thise should return 0:
find /var/lib/columnstore/ -newer /tmp/t.txt |wc -l
150
 
mariadb -ABNe "select product_name from inventory.products limit 1"
ERROR 1815 (HY000) at line 1: Internal error: MCS-2006: 'inventory.products' does not exist in Columnstore.

Tested and confirmed on Debian 10.
Customer reported problem on Redhat Enterprise Linux.



 Comments   
Comment by Edward Stoever [ 2022-04-08 ]

A way to avoid this problem is, after shutdown of columnstore service and before software update:

mv /var/lib/columnstore /var/lib/columnstore-safe

After software update:

systemctl stop mariadb-columnstore
rm -fr /var/lib/columnstore
mv /var/lib/columnstore-safe /var/lib/columnstore
systemctl start mariadb-columnstore

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