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

Invariant failure in getFieldsWithStringBounds with descending point ranges

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.6, 4.3.3, 4.0.19, 3.6.19
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Query 2020-01-27
    • 0

      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();
      

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

              Created:
              Updated:
              Resolved: