|
From the test logs, the "Unknown log type for rotate" error is only logged by the config server instances, which do not start with the --auditDestination=file option. Before this check was added by this commit for SERVER-61699 , the logv2::rotateLogs() function gets called with log type kAuditLogTag regardless of whether audit logging is enabled. Also, the log rotator callback with this log type only gets registered if audit logging is enabled and is destined to a file (see here). Since the config server has not enabled audit logging, the audit log rotator callback was never registered, and so the logv2::rotateLogs() function emits this error message when given the log type kAuditLogTag.
TL;DR: this issue has been fixed in SERVER-61699. Before that fix, errors from the very first audit log rotation (i.e. rotateAuditLog()), such as this one, were simply ignored.
|