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

Calling createIndex() can cause the shell to stall

    • Minor Change
    • ALL
    • Hide

      From the shell run:

      db.foo.ensureIndex({a: 1}, {length: 1.7976931348623157e+308})
      
      Show
      From the shell run: db.foo.ensureIndex({a: 1}, {length: 1.7976931348623157e+308})

      When createIndex is called in the shell it checks if the options provided are an array with if ( options.length ). If options is an object with a a field called length that is very large the shell will stall. This can be fixed by check if it's an array with if ( Array.isArray(options ). This can cause problems in jstestfuzz.

            Assignee:
            j.delaney J Delaney
            Reporter:
            j.delaney J Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: