Support valid index options with invalid value types for legacy restores

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Unresolved
    • Priority: Major - P3
    • 100.8.1
    • Affects Version/s: None
    • Component/s: mongorestore
    • 1,426

      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.

            Assignee:
            Unassigned
            Reporter:
            Evgeni Dobranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: