[SERVER-21500] Include the name of the FSM workload in the WorkloadFailure description Created: 17/Nov/15  Updated: 16/Nov/16  Resolved: 11/Dec/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.2.0-rc3
Fix Version/s: 3.2.1, 3.3.0

Type: Task Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG D (12/11/15), TIG E (01/08/16)
Participants:

 Description   

When a workload fails, the reported backtrace will refer to the location of where the function was defined. Suppose that workload B derives from workload A. If the failure happens in a function that isn't overridden by a workload B, then then backtrace will refer to the definition of the function in workload A. This leads to ambiguity in which workload caused a failure when multiple workloads sharing the same base workload were run concurrently or were composed with each other.

[js_test:fsm_all] 2015-11-17T11:03:43.807-0500 ----
[js_test:fsm_all] 2015-11-17T11:03:43.807-0500 Workload(s) completed in 626 ms: jstests/concurrency/fsm_workloads/indexed_insert_compound.js
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500 ----
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500 2015-11-17T11:03:43.807-0500 E QUERY    [thread1] Error: 20 threads threw
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500         Foreground
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500         Error: I was thrown in an indexed_insert_base.js function, but was actually running indexed_insert_compound.js
[js_test:fsm_all] 2015-11-17T11:03:43.808-0500
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         find@jstests/concurrency/fsm_workloads/indexed_insert_base.js:68:19
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         runFSM@jstests/concurrency/fsm_libs/fsm.js:43:13
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         ____MongoToSM_newFunction_temp/<@:10:9
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         main@jstests/concurrency/fsm_libs/worker_thread.js:104:17
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         ____MongoToSM_newFunction_temp@:7:1
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500         ____MongoToSM_newFunction_temp@:5:24
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500
[js_test:fsm_all] 2015-11-17T11:03:43.809-0500  :
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500 throwError@jstests/concurrency/fsm_libs/runner.js:329:23
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500 runWorkloads@jstests/concurrency/fsm_libs/runner.js:618:17
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500 serial@jstests/concurrency/fsm_libs/runner.js:631:13
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500 @jstests/concurrency/fsm_all.js:10:1
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500
[js_test:fsm_all] 2015-11-17T11:03:43.810-0500 failed to load: jstests/concurrency/fsm_all.js

Proposal is to include the workload name in the description of the WorkloadFailure.



 Comments   
Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21500 Include the name of the FSM workload in the WorkloadFailure description

(cherry picked from commit f8e74606522b32978aca2c4dab8a23ec6d01defc)
Branch: v3.2
https://github.com/mongodb/mongo/commit/eca57c613d92b170a3bc0005354c127c3b369fe8

Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21500 Include the name of the FSM workload in the WorkloadFailure description
Branch: master
https://github.com/mongodb/mongo/commit/f8e74606522b32978aca2c4dab8a23ec6d01defc

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