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

Running scan_checked_replset.js fails to create dbcheck artifacts when operating on internal system collections

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL

      The server disallows any collection created with ".system." in its name.
      https://github.com/mongodb/mongo/blob/r4.4.12/src/mongo/db/ops/insert.cpp#L273

      When scan_checked_replset.js operates on system collections, it attempts to create the collection with names such as "admin.dbcheck_backup.system.users.3" which violates the constraint.

      We can modify the prefix generated in the scan script to use a different character:

      const saveCollPrefix = "dbcheck.";
      const backupCollPrefix = "dbcheck_backup.";
      

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            edwin.zhou@mongodb.com Edwin Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: