LOGV2 messages may throw BSONObjectTooLarge exceptions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • Security 2023-06-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is possible for the log attributes when serialized using the custom serialize(), toBSON(), etc. members to trigger a BSONObjectTooLarge exception. Ideally the log line truncation performed by the logging subsystem would be performed at the same time to retain a portion of the log attributes rather than throwing an exception.

      Worth considering would be whether the logging subsystem should swallow other exceptions thrown by the custom serialization functions.

              Assignee:
              Mark Benvenuto
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: