[SERVER-18607] Difficult to tell if running on an openSource or Enterprise version of the server Created: 15/May/15  Updated: 15/Oct/15  Resolved: 13/Oct/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Osmar Olivo Assignee: Jonathan Reams
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Build 9 (09/18/15), Build A (10/09/15)
Participants:

 Description   

Today there is no universal clean cut way of quickly distinguishing whether you are connected to an enterprise version of the server or not.

There appear to be 2 ways of programmatically doing this.

1. db.adminCommand('buildinfo') -> Will tell me whether or not it is an enterprise build in the modules section.

2. running mongod --help will have enterprise only flags enabled.

These require that I either have admin privileges to the database or access to the raw binary. There should be a simple & quick way in which to distinguish this in order to make sure the correct versions are being deployed across projects.

The shell should have some way of distinguishing it, such as

ajeair:Enterprise Primary>

.

Furthermore, there should be some way of being able to easily check from the drivers as well. Whether through the version() or some other runCommand.



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

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-18607 Mongo shell should report whether connected MongoDB is enterprise
Branch: master
https://github.com/mongodb/mongo/commit/6e5538a6b2f981949ed81a4b45337a4732f1c476

Comment by Max Hirschhorn [ 12/Oct/15 ]

Reverted due to failure in gle_shell_server5441.js.

[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000 2015-10-12T21:51:46.975+0000 E QUERY    [thread1] Error: [2] != [0] are not equal : failed on iteration 'final', getLastErrorObj()={
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "connectionId" : 4,
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "n" : 0,
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "syncMillis" : 0,
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "writtenTo" : null,
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "err" : null,
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.982+0000   "ok" : 1
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 } :
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 doassert@src/mongo/shell/assert.js:15:14
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 assert.eq@src/mongo/shell/assert.js:43:5
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 checkgle@jstests/gle/core/gle_shell_server5441.js:7:5
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 @jstests/gle/core/gle_shell_server5441.js:22:1
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000
[js_test:gle_shell_server5441] 2015-10-12T21:51:46.983+0000 failed to load: jstests/gle/core/gle_shell_server5441.js

Comment by Githook User [ 12/Oct/15 ]

Author:

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

Message: Revert "SERVER-18607 Mongo shell should report whether connected MongoDB is enterprise"

This reverts commit 0da3d37f6c8ada55e523b7176378ca047a0fa985.
Branch: master
https://github.com/mongodb/mongo/commit/b8b056d939fceb8af5d45a5c5b9fdfd7449abbfe

Comment by Githook User [ 12/Oct/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-18607 Mongo shell should report whether connected MongoDB is enterprise
Branch: master
https://github.com/mongodb/mongo/commit/0da3d37f6c8ada55e523b7176378ca047a0fa985

Comment by Githook User [ 18/Sep/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-18607 Promote modules list to stable buildInfo interface
Branch: master
https://github.com/mongodb/mongo/commit/707a9e18da5a000ed727a76bfe3a05a562a5add8

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