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

Invariant failure in getFieldsWithStringBounds with descending point ranges

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.6, 4.3.3, 4.0.19, 3.6.19
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Query 2020-01-27
    • 0

    Description

      It looks like the necessary ingredients to repro are:

      • a collation
      • multiple point ranges
      • the point ranges are indexed in descending order
      • more than one index can satisfy the query
      • the query asks for a sort within each point range

      var coll = db.foo;
      coll.drop();
      db.createCollection(coll.getName(), {collation: {locale: 'fr'}});
      coll.createIndex({x: -1});
      coll.createIndex({x: -1, y: 1});
       
      coll.find({x: {$in: [2, 5]}}).sort({y: 1}).toArray();
      

      Attachments

        Activity

          People

            david.percy@mongodb.com David Percy
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: