[SERVER-37013] mongoebench-compatible JSON config files attempt to read from views without using "find" command Created: 06/Sep/18  Updated: 29/Oct/23  Resolved: 11/Sep/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.0.3, 4.1.3

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: read-only-views, tig-mobile
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: TIG 2018-09-10, TIG 2018-09-24
Participants:

 Description   

The benchrun.py script defaults to --readCmd=false as seen in the mongoebench-compatible JSON config file with "readCmd" : false.

benchrun_embedded/testcases/queries_identity_view_int_id_find_one.json

...
"writeConcern" : { "j" : false },
"writeCmd" : true,
"readCmd" : false } ] }

This causes DBClientConnection::findOne() to be called rather than DBClientConnection::runCommand() being called via runQueryWithReadCommands(). Legacy OP_QUERY reads do not support views - only the "find" command does. Changing the mongoebench-compatible JSON config files to be generated with --readCmd=true would address this issue.



 Comments   
Comment by Githook User [ 22/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Add Evergreen task to generate mongoebench config files.

(cherry picked from commit 15a2a3112585edd869d5635dc05440cd3c43ba9c)
Branch: v4.0
https://github.com/mongodb/mongo/commit/47ef6fe38cda5f896fbe1e193bb91b953098bcbb

Comment by Githook User [ 22/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Bump pin for mongo-perf repo in get_sources.sh script.

(cherry picked from commit 5ab11584e45c4c1825d5cace58e5f31c59f19e62)
Branch: v4.0
https://github.com/mongodb/mongo/commit/9102047a3dfa55c68992362ea38023692a1ff3c0

Comment by Githook User [ 22/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Generate mongoebench config files using --readCmd=true.

The benchrun.py script defaults to --readCmd=false which would otherwise
prevent the usage of views. We still use --readCmd=false for the
non-views tests to match what etc/perf.yml does.

(cherry picked from commit a3c62ebeebb69982fda16697294827bb68a093bc)
Branch: v4.0
https://github.com/mongodb/mongo/commit/6c4ea338c3ed514c79b59dab75882a228fd48329

Comment by Githook User [ 11/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Add Evergreen task to generate mongoebench config files.
Branch: master
https://github.com/mongodb/mongo/commit/15a2a3112585edd869d5635dc05440cd3c43ba9c

Comment by Githook User [ 11/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Bump pin for mongo-perf repo in get_sources.sh script.
Branch: master
https://github.com/mongodb/mongo/commit/5ab11584e45c4c1825d5cace58e5f31c59f19e62

Comment by Githook User [ 11/Sep/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-37013 Generate mongoebench config files using --readCmd=true.

The benchrun.py script defaults to --readCmd=false which would otherwise
prevent the usage of views. We still use --readCmd=false for the
non-views tests to match what etc/perf.yml does.
Branch: master
https://github.com/mongodb/mongo/commit/a3c62ebeebb69982fda16697294827bb68a093bc

Generated at Thu Feb 08 04:44:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.