[SERVER-47170] Make the NSTargeter not mix exceptions and statuses for error handling Created: 29/Mar/20  Updated: 29/Oct/23  Resolved: 31/Mar/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-47151 Separate WriteOpTest(s) and ChunkMana... Closed
is depended on by SERVER-46981 The MongoS write commands scheduler d... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-04-06
Participants:

 Description   

The ChunkManagerTargeter implementation of NSTargeter mixes exceptions and Status return values in many places, which makes it difficult to follow the ClusterWriter's execution flow.

This ticket is to make the API of the NSTargeter rely on exceptions only.



 Comments   
Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-47170 Get rid of Status returns from the NSTargeter API

Instead, use exceptions uniformly.
Branch: master
https://github.com/mongodb/mongo/commit/b2696ab65cf20e5c1082c162990a381661530ec2

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