Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2890

Support valid index options with invalid value types for legacy restores

    XMLWordPrintable

Details

    • Investigation
    • Status: Accepted
    • Major - P3
    • Resolution: Unresolved
    • None
    • 100.7.0
    • mongorestore

    Description

      In the linked HELP ticket, there's a case where the expireAfterSeconds index option has a string value rather than the expected numeric from a 3.6 mongodump (e.g. "1234" instead of 1234).

      We should investigate how this might've happened, and see if we should support numeric strings for this index option (and possibly other index options) when restoring with --convertLegacyIndexes.

      This would be a relatively simple fix using the strconv package for example.

      Attachments

        Activity

          People

            Unassigned Unassigned
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: