[SERVER-21375] Confusing error message when command comes in while node is in drain mode Created: 09/Nov/15  Updated: 19/Jul/16  Resolved: 10/Jun/16

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

Type: Bug Priority: Minor - P4
Reporter: Spencer Brody (Inactive) Assignee: Hari Devaraj
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-21432 Allow slaveOk reads while in drain mode Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 15 (06/03/16), Repl 16 (06/24/16)
Participants:
Linked BF Score: 0

 Description   

If a node is in drain mode when it receives a command we may return a "node is recovering" message, even though the node is not in state RECOVERING.
This is due to this line: https://github.com/mongodb/mongo/blob/r3.3.6/src/mongo/db/dbcommands.cpp#L1326

We should clean up the messaging here



 Comments   
Comment by Githook User [ 10/Jun/16 ]

Author:

{u'name': u'Hari Devaraj', u'email': u'hari.devaraj@mongodb.com'}

Message: SERVER-21375 fixed drain mode error and added recovery test
Branch: master
https://github.com/mongodb/mongo/commit/d22b461811ec1e00b36aa767323bf13c0da411f0

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