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

JS Test single_node_config_server_smoke has race condition

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.1, 3.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
    • Fully Compatible
    • ALL
    • 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.
    • Sharding E (01/08/16)

      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.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            williamzhang William Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: