[MCOL-340] Logging fails totally after removing the log files Created: 2016-09-30 Updated: 2023-10-26 Resolved: 2016-10-20 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.0.3 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Wikman | Assignee: | David Thompson (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos7.2 |
||
| Description |
|
After removing the log files: debug.log warning.log err.log info.log I can't get the logging to work again. Even after creating the files again. Before I did anything: [root@tgw-qxdr3 columnstore]# pwd [root@tgw-qxdr3 columnstore]# ls -la debug.log warning.log err.log info.log Then I removed the files: And restarted columnstore: System being restarted now ... Here you would think that the removed log files should have been created again, but that never happened. [root@tgw-qxdr3 columnstore]# ls -la debug.log warning.log err.log info.log Here's the log configuration: mscadmin> getLogConfig [root@tgw-qxdr3 columnstore]# cat /etc/rsyslog.d/49-columnstore.conf
And even after creating the files manually and a restartSystem, no logging occurs: [root@tgw-qxdr3 columnstore]# touch err.log warning.log debug.log info.log [root@tgw-qxdr3 columnstore]# mcsadmin restartSystem y System being restarted now ............. [root@tgw-qxdr3 columnstore]# ls -la debug.log warning.log err.log info.log |
| Comments |
| Comment by Daniel Wikman [ 2016-10-03 ] | ||
|
Somehow the logs started to work again.. | ||
| Comment by David Thompson (Inactive) [ 2016-10-19 ] | ||
|
i can reproduce this. A workaround / way to retrigger the logging is to run enablelog which seems to trigger this: I agree that it's surprising that shutting down and restarting the server doesn't resume the logging. I can take a guess that the the reason it fixed itself is probably due to the log archiving / rotation. This is important to address as operationally sometimes you want to blow away logs in emergency circumstances when disk gets low. | ||
| Comment by David Thompson (Inactive) [ 2016-10-19 ] | ||
|
Can you take a look. Possibly this is legacy infinidb behavior but if possible we should try to fix this in order of preference:
| ||
| Comment by David Thompson (Inactive) [ 2016-10-20 ] | ||
|
Column store uses syslog logging and this is actually an issue with rsyslogd rather than column store. Should you be in this situation, a better fix is to restart the service, e.g.:
The install configures this and also configures syslog to do rotation and archiving of the log files. The following command will tell you where the syslog config file is
log rotation config is in /etc/logrotate.d/columnstore (at least for Centos 7) |