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

JS Test single_node_config_server_smoke has race condition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.1, 3.3.1
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      Run the jstest jstests/sharding/sync_cluster_config/single_node_config_server_smoke.js.

      Show
      Run the jstest jstests/sharding/sync_cluster_config/single_node_config_server_smoke.js.
    • Sprint:
      Sharding E (01/08/16)

      Description

      At https://github.com/mongodb/mongo/blob/master/jstests/sharding/sync_cluster_config/single_node_config_server_smoke.js#L30

      Sometimes TestColl.count({}) could return 3, because the document in the shard0000 is not deleted in time.

      This issue could be avoided by adding "_waitForDelete : true" at the moveChunk command in the previous line.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: