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

Test create_index_background_wildcard.js doesn't account for orphans when run with random migrations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Sharding 2019-10-07, Sharding 2019-10-21, Sharding 2019-11-04, Sharding 2019-12-02, Sharding 2019-12-16, Sharding 2019-12-30

      Description

      When run under the concurrency_sharded_causal_consistency_and_balancer suite with the random migration failpoint on, this test deletes documents randomly] without the shard key and doesn't account for the deletion of orphans in it's assertion.

      Failing test run

       

      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.171+0000 2019-08-30T17:06:49.171+0000 E  QUERY    [js] Error: 2 threads with tids [1,4] threw
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.171+0000 
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.171+0000         Foreground jstests/concurrency/fsm_workloads/create_index_background_wildcard.js
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.171+0000         Error: 2 was not in [ 0, 1 ] : { "nRemoved" : 2 }
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000 
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         quietlyDoAssert@jstests/concurrency/fsm_libs/assert.js:55:18
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         assert.contains@src/mongo/shell/assert.js:305:13
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         wrapAssertFn@jstests/concurrency/fsm_libs/assert.js:65:13
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         assertWithLevel/</assertWithLevel[fn]@jstests/concurrency/fsm_libs/assert.js:104:13
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         deleteDocs@jstests/concurrency/fsm_workloads/create_index_background.js:173:17
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         runFSM@jstests/concurrency/fsm_libs/fsm.js:80:17
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         @eval:8:9
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         main@jstests/concurrency/fsm_libs/worker_thread.js:222:17
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         @eval:5:12
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         @eval:3:24
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000         _threadStartWrapper@:26:16
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000 
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000  :
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000 throwError@jstests/concurrency/fsm_libs/runner.js:357:23
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.172+0000 runWorkloads@jstests/concurrency/fsm_libs/resmoke_runner.js:202:5
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.173+0000 @jstests/concurrency/fsm_libs/resmoke_runner.js:283:1
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.173+0000 @jstests/concurrency/fsm_libs/resmoke_runner.js:1:2
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.173+0000 2019-08-30T17:06:49.172+0000 F  -        [main] failed to load: jstests/concurrency/fsm_libs/resmoke_runner.js
      [fsm_workload_test:create_index_background_wildcard] 2019-08-30T17:06:49.173+0000 2019-08-30T17:06:49.172+0000 E  -        [main] exiting with code -3
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              alex.taskov Alexander Taskov
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: