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

Sorting with value of Infinity causes assertion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.5.3
    • 2.5.5
    • Querying
    • ALL

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: