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

indexed query with {$lt: ''} causes assertion

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.3
    • Component/s: Index Maintenance
    • Environment:
    • ALL

      Problem:
      Creating a unique index causes an assert on 2.5.4-Pre

      Reproduce:

      db.q.drop()
      db.q.insert({b:1})
      db.q.ensureIndex( { b: 1 }, { unique: true } )
      db.q.find( { "b" : { $lt : "" } } )
      error: { "$err" : "assertion src/mongo/db/query/query_planner.cpp:416" }
      

      On 2.4.5, this executes with issue.

        1. server11436.js
          0.2 kB
          Benety Goh

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: