[SERVER-26354] make MongoRunner bin versions comparable Created: 27/Sep/16  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Unresolved Votes: 0
Labels: tig-multiversion
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Tooling & Methods
Participants:

 Description   

It'd be nice to be able to do something like:

var minimumRequiredVersion = new Version("3.4");
if (MongoRunner.getBinVersionFor(otherParams.mongosOptions.binVersion) < minimumRequiredVersion) {
    // Configure the options specially to handle the legacy version, e.g. pass an additional option
    otherParams.mongosOptions.specialOptionForLegacy = true;
}



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Comment by Esha Maharishi (Inactive) [ 30/Sep/16 ]

Actually, this is a decent workaround for now (thanks judah.schvimer and spencer):

https://github.com/mongodb/mongo/commit/6698877003e46995552dafacf2aaac86c351191c#diff-a6575f6721fb53f497e1d86bcb99d0d1R468

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