[SERVER-24595] enforce ismaster responses have ok:1 before negotiating protocol Created: 15/Jun/16  Updated: 10/Apr/17  Resolved: 16/Jun/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.13, 3.3.9

Type: Bug Priority: Major - P3
Reporter: Matt Cotter Assignee: Matt Cotter
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.2
Sprint: Platforms 16 (06/24/16)
Participants:
Linked BF Score: 0

 Description   

An interrupted isMaster response, e.g.

{ ok: 0.0, errmsg: "operation was interrupted", code: 11602 }

results in a parsed protocol version of opQueryOnly.

We need to verify that the ismaster response is ok before negotiating protocols, both in dbclient and network interface asio auth.



 Comments   
Comment by Githook User [ 10/Apr/17 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-24595 enforce ismaster response has ok:1

(cherry picked from commit e9cd7667471eff437463e7de842af95747847be4)
Branch: v3.2
https://github.com/mongodb/mongo/commit/3aa8cf14fd7c6c821c81aac03cb4948663743d22

Comment by Andy Schwerin [ 22/Jun/16 ]

Should we back port this to the 3.2 branch, matt.cotter@mongodb.com?

Comment by Githook User [ 16/Jun/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-24595 enforce ismaster response has ok:1
Branch: master
https://github.com/mongodb/mongo/commit/e9cd7667471eff437463e7de842af95747847be4

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