[SERVER-55473] DBClientBase::_auth should return the original status instead of AuthenticationFailed Created: 24/Mar/21  Updated: 29/Oct/23  Resolved: 22/Apr/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Wenbin Zhu
Resolution: Fixed Votes: 0
Labels: pm-1791_non-cloud-blocking
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-52713 [testing] Add stepdown/kill/terminate... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.9
Sprint: Repl 2021-05-03
Participants:

 Description   

Currently, this method converts all non-OK status to AuthenticationFailed and only returns the original status as the status reason. This is causing TenantMigrationRecipientService to fail to retry the aggregate command here on retryable errors.



 Comments   
Comment by Githook User [ 22/Apr/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-55473 DBClientBase::_auth returns original status instead of AuthenticationFaile.

(cherry picked from commit a24b761247c996b87b514c513b69588f86a40f1a)
Branch: v4.9
https://github.com/mongodb/mongo/commit/a2f139b19e1a795509ae5f55613ed96234231fb0

Comment by Githook User [ 22/Apr/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-55473 DBClientBase::_auth returns original status instead of AuthenticationFaile.
Branch: master
https://github.com/mongodb/mongo/commit/a24b761247c996b87b514c513b69588f86a40f1a

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