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

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

      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-server-query Backlog - Query Team (Inactive)
            Reporter:
            miguel.nieto@mongodb.com Miguel Angel Nieto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: