[MCOL-4494] CMAPI should log to standard columnstore log directory Created: 2021-01-12  Updated: 2021-02-17  Resolved: 2021-02-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: 5.5.1
Fix Version/s: 5.5.2

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

Issue Links:
PartOf
is part of MCOL-4483 Consolidate Log Location Closed
Epic Link: ColumnStore Message & Logging Improvements
Sprint: 2021-1, 2021-2, 2021-3

 Description   

CMAPI logs to standard system logs. It should log to it's own log files located in the columnstore log directory – default "/var/log/mariadb/columnstore". A cmapi subdirectory should be used.



 Comments   
Comment by Daniel Lee (Inactive) [ 2021-02-05 ]

Build tested: 5.5.2-1 (Drone #1627, cmapi build drone #430)

I don't see any PR for the engine in this ticket. Is the change on cmapi?

After installation, I did not see any log sub directory or entries for cmapi under /var/log/mariadb/columnstore. The following entries were found in /var/log:

secure:Feb 5 16:57:17 centos-8 sudo[4180]: root : TTY=unknown ; PWD=/root ; USER=root ; COMMAND=/bin/mkdir -p /opt/cmapi
secure:Feb 5 16:57:17 centos-8 sudo[4182]: root : TTY=unknown ; PWD=/root ; USER=root ; COMMAND=/bin/chmod 0755 /opt/cmapi
secure:Feb 5 16:57:17 centos-8 sudo[4185]: root : TTY=unknown ; PWD=/opt/cmapi ; USER=root ; COMMAND=/bin/tar -xvzf mariadb-columnstore-cmapi.tar.gz
secure:Feb 5 16:57:17 centos-8 sudo[4189]: root : TTY=unknown ; PWD=/opt/cmapi ; USER=root ; COMMAND=/bin/systemctl start mariadb-columnstore-cmapi
secure:Feb 5 16:57:17 centos-8 sudo[4191]: root : TTY=unknown ; PWD=/opt/cmapi ; USER=root ; COMMAND=/bin/systemctl enable mariadb-columnstore-cmapi
secure:Feb 5 16:57:17 centos-8 sudo[4193]: root : TTY=unknown ; PWD=/opt/cmapi ; USER=root ; COMMAND=/bin/systemctl status mariadb-columnstore-cmapi

I also checked 5.5.1 and found the exact same thing.

Comment by Jose Rojas (Inactive) [ 2021-02-09 ]

CMAPI now logs output to /var/log/columnstore/cmapi_server.log

For QA: CMAPI package to test is available here: https://cspkg.s3.amazonaws.com/index.html?prefix=cmapi/master/433

Comment by Daniel Lee (Inactive) [ 2021-02-17 ]

Build verified: 5.5.2-1 (Drone builds Drone engine=1678 cmapi=433)

The log file is in /var/log/mariadb/columnstore directory.

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