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

assertion (fassert) may be triggered by exact match geo lookup with $or

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: Geo, Querying
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Geo operators are prevented inside top level $or clauses, and the $or implementation is not used when they are present outside $or clauses. However, it is possible for an exact match location query used with $or to trigger a code path disallowed for geo cursors which currently causes an fassert.

      > c.ensureIndex( { a:'2d' } )
      > c.ensureIndex( { c:1, b:1 } ) // This index is necessary to trigger the described behavior.
      > c.save( { a:[ 0, 0 ], b:1 } )
      > c.find( { a:[ 0, 0 ], $or:[ { b:1 } ] } )

        Attachments

          Activity

            People

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: