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

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

      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 Unassigned
            Reporter:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: