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

Add a way to read a sequence of BSONObj from a dump file in shell utils

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Execution Team 2025-01-20

      `readDumpFile` https://github.com/10gen/mongo/blob/512143ec356794a9df4a5ab67aef05fd1a7a2fce/src/mongo/shell/shell_utils_extended.cpp#L592 can only read a file whose content fits into a single BSONObj (which holds a BSONArray of results).  For larger corpuses, we need a way to pull out multiple BSONObj from a larger dump file to write js tests.

      As all return results from shell functions are BSONObj, this probably means we need some sort of iterator-like pattern.

            Assignee:
            binh.vo@mongodb.com Binh Vo
            Reporter:
            binh.vo@mongodb.com Binh Vo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: