BugZero found this defect 68 days ago.
Data sources
All data on this page is proprietary to BugZero® or gathered from public sources
3/12/2024
MongoDB Server
No affected releases provided.
8.0.0-rc0
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.
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