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

Drop collection "test" at start of explain_all_plans_execution_stats.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • 0

      explain_all_plans_execution_stats.js has been observed to fail in Evergreen nightly runs with error "Index not allowed on, or a prefix of, the encrypted field a", but this test does not use encryption. The problem is that the test uses a collection named "test" but does not drop it first, and it uses generic field names "a" and "b" which are also common. Thus if a prior test also used a collection named "test" with an encrypted field "a", this test will fail in this manner when it tries to create an index on field "a".
       

      The fix is to drop collection "test" at the start of this test.

            Assignee:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: