[SERVER-20297] Add the ability to connect to all cluster nodes from workload states in the concurrency suite Created: 04/Sep/15  Updated: 18/Dec/15  Resolved: 23/Oct/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.1.7
Fix Version/s: 3.2.0-rc1

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Judah Schvimer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-21940 Workload connection cache in FSM suit... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 9 (09/18/15), TIG A (10/09/15), TIG B (10/30/15)
Participants:

 Description   

Workload states in the concurrency suite only connect to one host via the 'db' variable. Some sharding workloads we'd like to write require us to verify state on config servers and individual shards, so we need to start passing connection info to each workload state via a 'cluster' parameter.

The serialization will be compatible with JSON.parse().



 Comments   
Comment by Githook User [ 23/Oct/15 ]

Author:

{u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'}

Message: SERVER-20297 Expose cluster nodes to workload states in the concurrency suite

Closes #1036

Signed-off-by: Kamran Khan <kamran.khan@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/fac076ca8a0d6bf9c48e9f697a08cd5e1e96413e

Comment by Kamran K. [ 22/Oct/15 ]

This change broke non-sharded FSM tests:

[js_test:fsm_all] 2015-10-22T22:59:16.079+0000 2015-10-22T22:59:16.078+0000 E QUERY    [thread1] TypeError: st is undefined :
[js_test:fsm_all] 2015-10-22T22:59:16.079+0000 getSerializedCluster@jstests/concurrency/fsm_libs/cluster.js:310:13
[js_test:fsm_all] 2015-10-22T22:59:16.079+0000 ThreadManager/spawnAll/<@jstests/concurrency/fsm_libs/thread_mgr.js:119:30
[js_test:fsm_all] 2015-10-22T22:59:16.080+0000 spawnAll@jstests/concurrency/fsm_libs/thread_mgr.js:103:9
[js_test:fsm_all] 2015-10-22T22:59:16.080+0000 runWorkloads/<@jstests/concurrency/fsm_libs/runner.js:430:25
[js_test:fsm_all] 2015-10-22T22:59:16.080+0000 runWorkloads@jstests/concurrency/fsm_libs/runner.js:409:13
[js_test:fsm_all] 2015-10-22T22:59:16.080+0000 serial@jstests/concurrency/fsm_libs/runner.js:483:13
[js_test:fsm_all] 2015-10-22T22:59:16.080+0000 @jstests/concurrency/fsm_all.js:10:1

Comment by Githook User [ 22/Oct/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: Revert "SERVER-20297 Expose cluster nodes to workload states in the concurrency suite"

This reverts commit 0613deff6fdb25c9289c550033e6b4b93ee81aa5.
Branch: master
https://github.com/mongodb/mongo/commit/1486fb4943162d360295bfae07c552207b8f2863

Comment by Githook User [ 22/Oct/15 ]

Author:

{u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'}

Message: SERVER-20297 Expose cluster nodes to workload states in the concurrency suite

Closes #1034

Signed-off-by: Kamran Khan <kamran.khan@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/0613deff6fdb25c9289c550033e6b4b93ee81aa5

Generated at Thu Feb 08 03:53:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.