Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38592

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying, Shell
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: