Operational Defect Database

BugZero found this defect 23 days ago.

MongoDB | 2654629

Direct shard connections warnings in single shard clusters may be emitted more than once

Last update date:

4/26/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

The direct shard connection checks are present in both AutoGetDB and AutoGetCollection. SERVER-86796 added the direct shard connection places in such a way that these checks may be repeated multiple times for certain operations (for example, the checks are present in both AutoGetDB and AutoGetCollection). This is to prevent a situation where the checks pass, then a second shard is added to the cluster and a collection is moved, and then the locks are acquired. When these checks throw errors, this is fine because the first failure will throw an error. For warnings, however, this means we can end up emitting multiple warnings for the same operation.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...