Add explicit size validation where code is currently relying on BSONObj constructor

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Repl 2025-05-12
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      The proposed solution for SERVER-84734 is to remove the size validation inside the BSONObj constructor that checks that any BSON object is below the internal limit of 16MB+16KB, and check that it is less than the Buffer Max Limit of 125 MB instead. There are currently several tests across the server that will fail as a result of this change, as they rely on the implicit size check within the constructor

      The code paths being checked in these tests need to be updated to do their own size validation if necessary before/alongside the change is made for SERVER-84734.

            Assignee:
            Ruchitha Rajaghatta
            Reporter:
            Ruchitha Rajaghatta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: