[MCOL-4992] cmapi packages with single node installation causes DBRM readonly error Created: 2022-02-09 Updated: 2022-10-26 Resolved: 2022-08-17 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | cmapi |
| Affects Version/s: | 6.2.2, 6.3.1, cmapi-1.5, cmapi-1.6 |
| Fix Version/s: | cmapi-22.08.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Alan Mologorsky |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2021-17 |
| Description |
|
Build tested: MCS 6.2.2, 6.3.1 For single node installation, cmapi package is installed, the node would end up in a DBRM readonly state. Starting the cmapi server or not does not make a difference. The simplest way to reproduce this is to just install all the deb packages, then run DDL statements. DBRM readonly error will occur. Although cmapi is not required for single-node installation, there is a high chance that user's would just install all packages download, causing this issue. I did not see the same issue with multiple-node installation, which requires cmapi. So far, I did the following columnstore and cmapi combinations: 6.2.2-1 1.4 single-node passed 6.2.2-1 1.5 singl-enode failed 6.3.1-1 1.5 single-node failed 6.3.1-1 1.6 single-node failed The issue was not identified previously because for single-node installation, cmapi was not installed since it was not required. |
| Comments |
| Comment by Daniel Lee (Inactive) [ 2022-02-12 ] | |||||||||||||||||||
|
So far I tested only on Centos 8 and Ubuntu18. It worked on Centos 8 but failed on Ubuntu18. This issue occurs as long as I installed the CMAPI package file. I did not add a node since it is a single cluster and I did not run any other CMAPI commands. I did not even need to start the CMAPI server service.
If I do start the CMAPI server service, then
The main point here is that this is a single node installation. CMAPI was not used and no cluster was configured. Simply installing the CMAPI would cause this DBRM read-only error. | |||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2022-02-18 ] | |||||||||||||||||||
|
More details on the issue: When installing CMAPI, CMAPI will set the mariadb-columnstore service to masked, which would prevent it from starting. This becomes an issue for single-node installation, which uses systemctl to 'start' and 'stop' the mariadb-columnstore service. For multiple installation, ColumnStore uses CMAPI instead of systemctl to 'start' and 'shutdown' cluster. Therefore, multi-node cluster is not affected. The following work around can be used to avoid this issue 1. Don't install CMAPI.
| |||||||||||||||||||
| Comment by Alan Mologorsky [ 2022-06-14 ] | |||||||||||||||||||
|
Looks like this is corner case when someone's trying to install packages in a blind manner: `sudo apt -y install ./*.deb` So as ben.thompson suggested setting up mariadb-columnstore as a dependency for cmapi will solve the issue. drrtuy What do you think? Looks like this could be a one liner improvement, but do we need that? |