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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 2.5.5
    • Component/s: Indexing
    • Environment:
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: