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

index_signature.js should not assert that numIndexesAfter is numIndexesBefore + 1 if

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • ALL
    • 8

      This test assumes that a createIndex command that created an index always returns a response with numIndexesAfter equals to numIndexesBefore + 1. This assumption is not true when the command is run on a mongos which retries on stale shard version errors. For example, in the case where there are two shards, the command can fail with StaleConfig on one of the shards but succeed on the other shard on the first try. The command will succeed on the second try after a refresh but the response from the shard that has already built the index on the first try will have numIndexesAfter equals to numIndexesBefore. 

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: