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

Investigate agg_base.js workload with causal consistency and secondary read preference

    • Fully Compatible
    • ALL
    • Sharding 2017-10-02, Sharding 2017-11-13
    • 0

      Possible bug with secondary read preference and causal consistency. The agg_base.js workload failed when an aggregation with an empty match expression didn't find the correct number of documents.

      Example stack trace:

      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.064+0000 2017-09-06T22:52:22.064+0000 E QUERY    [thread1] Error: 5 exceptions were thrown, 3 of which were unique:
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.064+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.064+0000         3 threads with tids [0,1,4] threw
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.064+0000         Foreground jstests/concurrency/fsm_workloads/agg_base.js
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.064+0000         Error: [922] != [1000] are not equal : undefined
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         quietlyDoAssert@jstests/concurrency/fsm_libs/assert.js:53:15
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         assert.eq@src/mongo/shell/assert.js:54:5
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         wrapAssertFn@jstests/concurrency/fsm_libs/assert.js:60:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         assertWithLevel/</assertWithLevel[fn]@jstests/concurrency/fsm_libs/assert.js:99:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         query@jstests/concurrency/fsm_workloads/agg_base.js:44:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.065+0000         runFSM@jstests/concurrency/fsm_libs/fsm.js:37:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000         @<unknown> line 6 > eval:10:9
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000         main@jstests/concurrency/fsm_libs/worker_thread.js:139:17
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000         @<unknown> line 6 > eval:7:1
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000         @<unknown> line 6 > eval:5:24
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000         _threadStartWrapper@:24:16
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.066+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.067+0000         1 thread with tids [2] threw
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.067+0000         Foreground jstests/concurrency/fsm_workloads/agg_base.js
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.067+0000         Error: [725] != [1000] are not equal : undefined
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.067+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.067+0000         quietlyDoAssert@jstests/concurrency/fsm_libs/assert.js:53:15
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.068+0000         assert.eq@src/mongo/shell/assert.js:54:5
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.068+0000         wrapAssertFn@jstests/concurrency/fsm_libs/assert.js:60:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.068+0000         assertWithLevel/</assertWithLevel[fn]@jstests/concurrency/fsm_libs/assert.js:99:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.068+0000         query@jstests/concurrency/fsm_workloads/agg_base.js:44:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.068+0000         runFSM@jstests/concurrency/fsm_libs/fsm.js:37:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000         @<unknown> line 6 > eval:10:9
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000         main@jstests/concurrency/fsm_libs/worker_thread.js:139:17
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000         @<unknown> line 6 > eval:7:1
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000         @<unknown> line 6 > eval:5:24
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000         _threadStartWrapper@:24:16
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.069+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000         1 thread with tids [3] threw
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000         Foreground jstests/concurrency/fsm_workloads/agg_base.js
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000         Error: [856] != [1000] are not equal : undefined
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.070+0000         quietlyDoAssert@jstests/concurrency/fsm_libs/assert.js:53:15
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.071+0000         assert.eq@src/mongo/shell/assert.js:54:5
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.071+0000         wrapAssertFn@jstests/concurrency/fsm_libs/assert.js:60:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.071+0000         assertWithLevel/</assertWithLevel[fn]@jstests/concurrency/fsm_libs/assert.js:99:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.071+0000         query@jstests/concurrency/fsm_workloads/agg_base.js:44:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.071+0000         runFSM@jstests/concurrency/fsm_libs/fsm.js:37:13
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000         @<unknown> line 6 > eval:10:9
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000         main@jstests/concurrency/fsm_libs/worker_thread.js:139:17
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000         @<unknown> line 6 > eval:7:1
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000         @<unknown> line 6 > eval:5:24
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000         _threadStartWrapper@:24:16
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.072+0000 
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.073+0000  :
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.073+0000 throwError@jstests/concurrency/fsm_libs/runner.js:344:23
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.073+0000 runWorkloads@jstests/concurrency/fsm_libs/runner.js:739:17
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.073+0000 serial@jstests/concurrency/fsm_libs/runner.js:752:1
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.073+0000 @jstests/concurrency/fsm_all_sharded_causal_consistency_and_balancer.js:112:1
      [js_test:fsm_all_sharded_causal_consistency_and_balancer] 2017-09-06T22:52:22.074+0000 failed to load: jstests/concurrency/fsm_all_sharded_causal_consistency_and_balancer.js
      

      evergreen link: https://evergreen.mongodb.com/task/mongodb_mongo_master_ubuntu1604_debug_asan_concurrency_sharded_causal_consistency_and_balancer_patch_a644bf58213f0786b8415277c1d54277b4f14581_59b04453e3c33147710011de_17_09_06_18_57_25/0

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: