[JAVA-3986] Drivers should not inspect error messages for "not master" or "node is recovering" Created: 04/Feb/21  Updated: 28/Oct/23  Resolved: 15/Mar/21

Status: Closed
Project: Java Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Server Compat: 5.0
Quarter: FY22Q1

 Description   

DRIVERS Ticket Description
Script Target - If you can read this text, the script has failed


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

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Update error handling logic (#682)

Update logic for throwing MongoNotPrimaryException or MongoNodeIsRecoveringException:

  • Add 10058 to the list of error codes that cause MongoNotPrimaryException
    to be thrown.
  • Only examine error messages when no error code is included in the reply.

JAVA-3986
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/22491e4a30cb9d4ce99b891353d102d8d3038527

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