Known Issues
5279 tracked MongoDB server issues from Jira with status, affected versions, and resolution details.
SERVER-136539ClosedFixed
FullCollScan sampling method can be reported incorrectly in explain
For persistent samples, the sampling method reported in explain is determined at read time, meaning that whether or not fullCollScan was used is based on the collection size at read time rather than when the sample was generate and persisted. If the collection size changed between persisting and reading then the wrong sampling method might be reported.
In order to report this accurately, we'd have to store the actual sampling method used in the sample doc metadata.
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-136767ClosedFixed
Complete TODO listed in SERVER-123990
There is a TODO in code owned by your team which references a resolved ticket.
The TODO appears in:
* src/mongo/db/modules/atlas/src/disagg_storage/replication_coordinator_disagg_storage.cpp:4172
* src/mongo/db/modules/atlas/src/disagg_storage/replication_coordinator_disagg_storage.cpp:4208
You can also search for all references to the resolved ticket here:
https://github.com/10gen/mongo/search?q=SERVER-123990&type=Code
The next steps for this ticket are to either remove the outdated TODO or
Fixed Versions
9.1.0-rc1025
SERVER-127901ClosedFixed
(classic) Add a small foreign collection result cache to $lookup for repeat localField values
In classic $lookup, we query the foreign collection for each incoming localField value. This involves reconstructing and optimizing the foreign collection query for each new value. However often there are repeat localField values, which means the foreign query results will be the same if there are no let variables.
We can have a small LRU cache for the previous localField values, and only store the results if they are small (a few kb). This is beneficial when the number of distinct localField
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137207ClosedFixed
Remove noexcept in the triggering invariant path
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-136765ClosedFixed
Complete TODO listed in SERVER-118457
There is a TODO in code owned by your team which references a resolved ticket.
The TODO appears in:
* src/mongo/db/replicated_fast_count/replicated_fast_count_test.cpp:504
You can also search for all references to the resolved ticket here:
https://github.com/10gen/mongo/search?q=SERVER-118457&type=Code
The next steps for this ticket are to either remove the outdated TODO or follow the steps in the TODO if it is correct. If the latter, please update the summary and description of this ticket t
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137014In Code Review
Fix performance problem in SBE $group by with large objects/arrays with similar values
In SBE, hashValue only hashes the first 4 values of an object or array. So if you have a lot of objects with boilerplate at the beginning (tenantId, customerId, etc) before the values differ, $group operations and set operations such as $addToSet become very slow.
To fix this, make SBE hash all fields of an object or array.
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-131366ClosedFixed
Validate ts before entering streaming oplog delta accumulator fast lane
In [StreamingOplogDeltaAccumulator|https://github.com/10gen/mongo/blob/master/src/mongo/db/replicated_fast_count/replicated_fast_count_streaming_oplog_delta_accumulator.cpp], the fast-lane handling of a malformed/missing ts field is inconsistent across the {{FastDecision}} cases. The {{{}[kCrud|https://github.com/10gen/mongo/blob/1dcdd99dd40a0250767d524d53e11d4a9c1b5da7/src/mongo/db/replicated_fast_count/replicated_fast_count_streaming_oplog_delta_accumulator.cpp#L618]{}}}, {{{}[kCommitTxn|https
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-135982ClosedFixed
Add type inference visitors for aggregation expressions
Signature:
This should dispatch via a visitor similar to matcher::narrowType.
So that we can call getOutputType(ExpressionConstant, ...) or getOutputType(ExpressionFieldPath, ...) and get the output type of the expression.
And narrowType on ExpressionCompare etc.
Make $expr call narrowType when the output of the expression is boolean, to wire things together. We should check the expression is boolean to match cases $expr: {$eq: [...]} but not $expr: {$add: [...]}} which is valid, but
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137276ClosedFixed
Preserve the shadowed path suffix when looking up a field in dependency graph
lookupField() returns only a FieldId and FieldMatchType. When the field being looked up is shadowed (i.e. we're looking for a.b.c when the graph only has a.b), the suffix is not represented in the result, so callers have to later rebuild it / repeat the full lookup through canPathBeArray(ds, fullPath)
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-134361ClosedFixed
Add pool of threads to be used in parallel queries
There is already a ThreadPool class, but it support only the scheduling of Future objects without a few features that Query Parallelism would rely on:
# Renameable (so that logs triggered by a parallel stream for the thread bound to conn56 are printed as conn56-1, conn56-2, etc)
# Server parameter to control maximum number (given the 127 tickets granted to Query by the WT engine, default size would be 64)
# Single acquire() API that returns N threads in one shot, we don't want to schedule
Fixed Versions
9.1.0-rc0
SERVER-137962ClosedFixed
Exclude plan_stability2.js from query_golden_disagg
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137850ClosedFixed
Split up large change stream setup function
This change refactors the previously long function {{DocumentSourceChangeStream::createFromBson()}} so that most of the work is moved to helper functions.
Determining the resume token, configuring the v2 change stream reader and updating change stream metrics are now all delegated to small helper functions in the anonynmous namespace.
Semantics and behavior should be fully preserved.
Components
Change streams
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-88773ClosedWon't Do
Randomly toggle between recordIdsReplicated:true and recordIdsReplicated:false
SERVER-87005 is attempting to set recordIdsReplicated:true for all collections in the all-feature-flags variant. Instead, we should start choosing the value randomly so that we can test the case where we have collections where some have it set to true while others have it set to false.
SERVER-88020ClosedWon't Do
Create serverStatus metrics for determining how many collections are using recordIdsReplicated:true
The point of this metric is to be able to determine whether all a user's collections use recordIdsReplicated:true or not. The goal is for there to be a formula:
So if the "total user replicated collections" metric is wrong, we need to fix that here too or provide a new metric to get that stat.
SERVER-129319ClosedDuplicate
Promote join optimization query knobs to query settings
Currently the Join Ordering Optimization query knobs can only be set via setParameter. This ticket is aimed at promoting them to `pqs_settable: true` knobs. To ensure PQS correctness the module visibility should be accordingly set to forbid reads outside of QueryKnobConfiguration.
SERVER-138017ClosedWon't Do
Multiversion and Upgrade/Downgrade Testing
This ticket is to ensure there is adequate multiversion testing
coverage for this project.
1. Test that this feature works correctly on mixed binary version
clusters.
2. Test how the feature behaves when upgrading FCV turns the
feature on
3. Test that the correct behavior occurs when downgrading FCV
completely and then upgrading FCV completely
4. Test that the correct behavior occurs if the FCV upgrade fails.
5. Test that the correct feature behavior occurs if the FCV downgrade
fails after only
SERVER-137445ClosedFixed
Add parallelism metrics to validate
Add metrics for parallelism to collection validation.
This will help disambiguate results when the feature flag is enabled. And inform how effective slicing is.
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137775ClosedFixed
Benchmark pathological cases for type inference in the dependency graph
* $match with predicates on deep dotted paths
* lots of unrelated predicates (on fields whose type we're not interested in)
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-127317ClosedWon't Fix
Clarify that 'rollout' flags default to being enabled
During SERVER-125656 the review pointed out that some comments were inaccurate. We should fix those.