A malformed createIndex doesn't generate an error message and gets executed in the foreground

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Shell
    • None
    • Query
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following createIndex is incorrect:

      db.collection.createIndex( { "SysTS": 1 }, { expireAfterSeconds: 47335428 }, {background: true} );
      

      Instead of receiving an error, it gets executed in the foreground.

      Tested in 3.6 and 4.0.

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Miguel Ángel Nieto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: