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

CBR may invariant on collection with collation with histogramCE enabled

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL

      const caseSensitive = { locale: "en", strength: 3 };
      var coll = db.in;
      coll.drop();
      assert.commandWorked(db.createCollection(coll.getName(), {collation: caseSensitive}));
      assert.commandWorked(coll.insert({elementField: "abcd"}));
      coll.find({elementField: {$in: ["aBcD", "ABCD"]}}).toArray();
      ./buildscripts/resmoke.py run --mongodSetParameters='{planRankerMode: "histogramCE"}' /tmp/repro.js
      

       

      [j0] {"t":{"$date":"2025-02-18T16:15:56.295+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"conn9","msg":"Invariant failure","attr":{"expr":"res <= 0","file":"src/mongo/db/query/index_bounds_builder.cpp","line":92}} 

      SERVER-97373 only implemented the fallback for index scan with collation. This bug indicates a problem when building bounds for a residual predicate.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: