[SERVER-73176] Only print error message if there were in fact errors in getHostFQDNs Created: 21/Jan/23  Updated: 29/Oct/23  Resolved: 14/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.19, 5.0.15, 6.3.0-rc0, 6.0.5

Type: Bug Priority: Minor - P4
Reporter: Adi Zaimi Assignee: Adi Zaimi
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Change getHostFQDNs() function to 1) not call getNameInfoErrors.push_back() with blanks, and 2) debug print the results vector so we can actually see what we are returning. This way we won't print error message when there was no error, ex.:

{"t":\{"$date":"2023-01-16T15:43:17.618+00:00"},"s":"D3", "c":"NETWORK",  "id":23171,   "ctx":"conn63","msg":"Failed to obtain name info","attr":{"errors":["","","","","",""]}}

This came from HELP-40780 where client is seeing the above error line even though there is are no actual errors.



 Comments   
Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Adi Zaimi', 'email': 'adizaimi@yahoo.com', 'username': 'adizaimi'}

Message: SERVER-73176: Only print actual error message in getHostFQDNs
Branch: master
https://github.com/mongodb/mongo/commit/c3575f9394d887bcc4f1600016049b7337e75d90

Comment by Githook User [ 02/Feb/23 ]

Author:

{'name': 'Adi Zaimi', 'email': 'adizaimi@yahoo.com', 'username': 'adizaimi'}

Message: SERVER-73176: Only print actual error message in getHostFQDNs (v6.0)
Branch: v6.0
https://github.com/mongodb/mongo/commit/f5c68f8f3efb3281f2ffad462640c38268deb319

Comment by Githook User [ 01/Feb/23 ]

Author:

{'name': 'Adi Zaimi', 'email': 'adizaimi@yahoo.com', 'username': 'adizaimi'}

Message: SERVER-73176: Only print actual error message in getHostFQDNs (v5.0)
Branch: v5.0
https://github.com/mongodb/mongo/commit/309409c4d248d2b117448d66d97b7adfe30e52a4

Comment by Githook User [ 23/Jan/23 ]

Author:

{'name': 'Adi Zaimi', 'email': 'adizaimi@yahoo.com', 'username': 'adizaimi'}

Message: SERVER-73176: Only print actual error message in getHostFQDNs
Branch: v4.4
https://github.com/mongodb/mongo/commit/605725ecdb59272e989210d066a5e88b091906e7

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