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

hashindex1.js should explicitly create collection before trying to create an invalid index

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc3, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-06-17, Repl 2019-07-01
    • 14

      We implicitly create a collection (and its _id index) while trying to create an invalid index. We expect the collection creation and _id index creation to succeed, but not the other index creation. This can cause issues in passthrough suites that use network_error_and_txn_override.js because we attach write concern majority to all writes. If the write concern fails, we don't retry the command because the command also fails with the expected error that the index couldn't be created. As a result, if the test steps up a node that did not receive the command to create the index, it will not have created the collection, so this check for the number of indexes on the collection fails.

            Assignee:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: