Operational Defect Database

BugZero found this defect 68 days ago.

MongoDB | 2605775

The $_internalOwningShard expression should verify that the cached CollectionRoutingInfo has an initialised routing table before consuming it

Last update date:

3/12/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

Description:

Info

The execution of the $_internalOwningShard aggregation expression requires the fetching of up-to-date routing information in a context that does not allow to wait for the completion of an inflight cache refresh. Such a logic should have to deal with situations where the returned CollectionRoutingInfo is stale or absent (this may happen in case $_internalOwningShard gets invoked right after the targeted collection gets sharded, which only triggers an asynchronous refresh of the routing info), but currently only the first condition is checked - and a tassert is instead hit when the latter one materialises.

Top User Comments

xgen-internal-githook commented on Tue, 12 Mar 2024 20:32:50 +0000: Author: {'name': 'ppolato', 'email': '82828243+ppolato@users.noreply.github.com', 'username': 'ppolato'} Message: SERVER-87796 Fix access to CollectionRoutingInfo within $_internalOwningShard (#19852) GitOrigin-RevId: eb092dfab95eb9d3c9fa224f28f69c6a56dbba97 Branch: master https://github.com/mongodb/mongo/commit/81fd80dd038f02c19035039d3ec39ff9fdc5bba9

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...