[SERVER-50414] Change “not master or secondary; cannot currently read from this replSet member” to “not primary or secondary; cannot currently read from this replSet member” Created: 20/Aug/20  Updated: 29/Oct/23  Resolved: 19/Nov/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.5, 4.2.14

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Sprint: Repl 2020-11-16, Repl 2020-11-30
Participants:

 Description   

Ensure that the new error message is only returned if the client sent a "hello" command. This is to preserve backwards compatibility with older drivers that parse the error message for "not master".



 Comments   
Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-50414 Reads should return not primary error messages during rollback if client sent helloOk

(cherry picked from commit d633efa72090a864442ef7232e1261d3b25bc27c)
(cherry picked from commit a04b42ed317f084387e70120fc0ad6ab0d6300ac)
Branch: v4.2
https://github.com/mongodb/mongo/commit/c8bca152e617ab9b7ec43f09aef0f0b40e439d4b

Comment by Githook User [ 15/Mar/21 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-50414 Reads should return not primary error messages during rollback if client sent helloOk

(cherry picked from commit d633efa72090a864442ef7232e1261d3b25bc27c)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a04b42ed317f084387e70120fc0ad6ab0d6300ac

Comment by Githook User [ 19/Nov/20 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-50414 Reads should return not primary error messages during rollback if client sent helloOk
Branch: master
https://github.com/mongodb/mongo/commit/d633efa72090a864442ef7232e1261d3b25bc27c

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