BugZero found this defect 464 days ago.
Data sources
All data on this page is proprietary to BugZero® or gathered from public sources
3/13/2024
MongoDB Server
No affected releases provided.
No fixed releases provided.
When resharding aborts, it stores the abort reason in the coordinator document. If it steps down and restarts again, it will abort the cancel token when it sees that the state is aborting. This in turn will cause it to get callback cancelled error later (I suspect from here) and the resharding coordinator will treat it like the user aborted resharding and return the generic ReshardingAborted error code instead of the original error code.
renctan commented on Fri, 10 Feb 2023 18:58:40 +0000: Attached diff for cpp test that the resharding coordinator returns the original error code on normal case without stepdown (this will pass) and a test case where it should also return the original error after a stepdown (this will fail).