[SERVER-49989] Add db.hello() shell helper Created: 29/Jul/20  Updated: 29/Oct/23  Resolved: 01/Sep/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.20, 4.7.0, 4.2.10, 4.4.2, 4.0.21

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-50651 Replace occurrences of isMaster comma... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0, v3.6
Sprint: Repl 2020-08-24, Repl 2020-09-07
Participants:

 Description   

We cannot alias db.isMaster() to db.hello() because db.hello() should send a “hello” command to the server. This means the client will receive different command responses than they received with db.isMaster().

Replace all occurrences of the old helper with the new helper except in jstests/multiversion. These passthrough tests can run against a 3.2 and 3.4 binary.



 Comments   
Comment by Githook User [ 16/Sep/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-49989 Add db.hello() shell helper

(cherry picked from commit 27fda7a486ff4229f9037a132c3d8baa11121864)
Branch: v4.0
https://github.com/mongodb/mongo/commit/25e3aeda438f7144b6771618ce1c9dd4dbee3f7e

Comment by Githook User [ 16/Sep/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-49989 Add db.hello() shell helper

(cherry picked from commit 27fda7a486ff4229f9037a132c3d8baa11121864)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b8b6d9fe5a5fb27efcdde48811b0eb9c9ca6a4a5

Comment by Githook User [ 16/Sep/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-49989 Add db.hello() shell helper

(cherry picked from commit 27fda7a486ff4229f9037a132c3d8baa11121864)
Branch: v3.6
https://github.com/mongodb/mongo/commit/ea8d8df3efa6592f82c2663810586d6222c73731

Comment by Githook User [ 15/Sep/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-49989 Add db.hello() shell helper

(cherry picked from commit 27fda7a486ff4229f9037a132c3d8baa11121864)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2b904bb7d987b1538dce3d1800d97ae73cd791b4

Comment by Githook User [ 25/Aug/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-49989 Add db.hello() shell helper
Branch: master
https://github.com/mongodb/mongo/commit/27fda7a486ff4229f9037a132c3d8baa11121864

Generated at Thu Feb 08 05:21:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.