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

Sorting with value of Infinity 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: Querying
    • Environment:
    • ALL

      Problem:
      Sorting on an element who's value is Infinity, causes an assertion.

      Reproduce:

      db.q.drop()
      db.q.insert({ "_id" : 688, "b" : Infinity })
      db.q.find(  { "b" : { $gte : 314159265019 } }  )
      db.q.find(  { "b" : { $gte : 314159265019 } }  ).sort( { "b" : 1 } )
      error: { "$err" : "assertion src/mongo/db/exec/sort.cpp:166" }
      

      This executes without an assertion on 2.4.5

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

              Created:
              Updated:
              Resolved: