Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77334

LOGV2 messages may throw BSONObjectTooLarge exceptions

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

      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@mongodb.com Mark Benvenuto
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: