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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Querying
    • Fully Compatible
    • ALL
    • 8

    Description

      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. 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: