-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
The semantics of the maxLogSizeKB server parameter have changed slightly in the change to structured logging. It no longer applies to the textual (json) log line (only the attrs), truncation is done in a different way, and setting it to 0 disables all truncation.
Description of Linked Ticket
It's currently possible to set the maxLogSizeKB parameter to 0 or a negative value, neither of which make sense.
The parameter variable itself is a signed int, but gets assigned to a size_t (which is unsigned). But it's not possible to use an unsigned type (see SERVER-27520), so either the allowed values should be restricted to only > 0, or values <= 0 reinterpreted (eg. to mean "default value" of 10 KB).
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-30387 maxLogSizeKB parameter should only be positive
- Closed