Operational Defect Database

BugZero found this defect 464 days ago.

MongoDB | 2260887

Resharding coordinator returns generic abort error after recovery from stepdown

Last update date:

3/13/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

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.

Top User Comments

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).

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...