[SERVER-13111] mongoperf does not provide version information Created: 10/Mar/14  Updated: 15/Mar/16  Resolved: 15/Mar/16

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.6.0-rc1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 Description   

The mongoperf utility does not provide it's version number. All other utilities/programs have a version, which is provided with the "--version" switch and also listed on the man page.



 Comments   
Comment by Ian Whalen (Inactive) [ 15/Mar/16 ]

Apologies for the delay in responding on this issue, but we've decided not to proceed with any further enhancements to mongoperf in its current form - as such we're closing this as Won't Fix. We aren't moving the existing code or removing the binary, but any changes going forward would almost certainly involve first moving the existing functionality to a newly written tool. We made a similar decision with our other tools in 3.0.0 and have been very happy with the results.

We don't have a specific timeline for this work, but you can vote on and add yourself as a watcher to TOOLS-1103 to be informed of updates as we weigh its priority against other projects that our Tools team are working on.

Comment by Shaun Verch [ 23/Jun/14 ]

mongoperf does not actually handle options in the same way as the other tools or the server. It does its own very primitive option handling here: https://github.com/mongodb/mongo/blob/r2.7.2/src/mongo/client/examples/mongoperf.cpp#L245

The solution to this would either be to add the "--version" argument to this existing option handling, or to integrate the options parser system that the other tools use.

See https://github.com/mongodb/mongo/blob/r2.7.2/src/mongo/tools/mongobridge_options.cpp (and other *mongobridge_options* files) for a well contained example of how the other tools handle the options. Doing it this way would mean that mongoperf would have to run the global MONGO_INITIALIZERs like the others tools do here: https://github.com/mongodb/mongo/blob/r2.7.2/src/mongo/tools/tool.cpp#L89 which it currently does not do.

Here is an example of how to access the version information, which is the code that the other tools use: https://github.com/mongodb/mongo/blob/r2.7.2/src/mongo/tools/tool_options.cpp#L197

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