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

    • Type: Investigation
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 100.6.0
    • Component/s: mongorestore
    • Labels:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            evgeni.dobranov Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: