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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Linked BF Score:
      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

            Assignee:
            david.storch David Storch
            Reporter:
            cheahuychou.mao Cheahuychou Mao
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: