Mongorestore misses collection names with newlines

XMLWordPrintableJSON

    • TAR 2025-05-26
    • 2
    • Tools and Replicator
    • 0.25
    • Not Needed

      Problem Statement/Rationale

      We have noticed a few tenant upgrades that failed to restore certain namespaces with ending newline characters. Newline characters are valid and should be able to be restored. Mongodump does recognize these collections and they are dumped as necessary but not the restore.

      In the logs below, mongorestore thinks it is done but when comparing to the mongodump logs, we see that the collection ending with newlines were not restored and no logs indicate any attempt at restoring.

      Example logs on atlas prod

      Mongodump log: https://cloud.mongodb.com/admin/nds/serverlessDowngradeToFree/67b76767bbbab53a95647858/logs?logType=mongodump

       

      Mongorestore log:
      https://cloud.mongodb.com/admin/nds/serverlessDowngradeToFree/67b76767bbbab53a95647858/logs?logType=mongorestore

      Steps to Reproduce

      Create a collection that ends with a newline character and it should not be restored but it is dumped

      Expected Results

      All dumped db and collections to be restored

      Actual Results

      Collections with ending newline characters are not being restored

      Additional Notes

      This is blocking the completing of forced serverless to free migrations and could potentially become blocker for serverless to dedicated migrations

            Assignee:
            Unassigned
            Reporter:
            Aaron Jiang
            James Zhang, Shyam Subramaniyam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: