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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying, Shell
    • None
    • Query
    • 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

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            miguel.nieto@mongodb.com Miguel Angel Nieto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: