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

Analyze asserts when run twice on the same collection with collation

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

      db.createCollection("collation", {collation: {locale: 'en', strength: 2}})
      db.collation.insert({a: 'abc'})
      db.runCommand({analyze: "collation", key: "a"})
      db.runCommand({analyze: "collation", key: "a"})
      // MongoServerError: Cannot find index to verify that join fields will be unique 

      This error message comes from the $merge stage generated by the analyze command complaining that the collation of the source collection is different than that of the existing statistics collection.

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

              Created:
              Updated: