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

fsm capped collection checks should only make 1 query for assertions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.3, 4.1.3
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Linked BF Score:
      11

      Description

      In the fsm workloads create_capped_collection.js and create_capped_collection_maxdocs.js, we check the number of documents after truncations and the actual documents. This is done with 2 queries and the number of documents is used to assert that the actual documents are correct.

      The problem is if the stepdown thread is running and the primary steps down between the 2 queries the results may not be consistent since capped collections are maintained independently in the replica set.

      The same assertion could be done with a single query, which would remove the window in which a stepdown could cause problems.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: