Known Issues
5166 tracked MongoDB server issues from Jira with status, affected versions, and resolution details.
SERVER-138636ClosedFixed
Add microbenchmark for sharded cluster transaction commit with allowEndOfTransaction enabled
Fixed Versions
9.1.0-rc0
SERVER-138949ClosedFixed
Reconstruct the prefix type for collection-origin fields
When we ask for a type of a dotted path defined in the graph, we currently use createDocumentFromLeafMatch.
For example, if we have \{$set: {'a.b': '$c'}}, where we know '$c' is a 'number', we nest the 'number' type into the prefix to construct:
Root = \{a: array|scalar|{b: array|scalar|number}}
This is not pointless, once we have this Root type, we can intersect it with collection schema and $match type inference to potentially remove the prefixes.
We need to do the same for fields
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-139426ClosedFixed
Fix mirrored-read race in change_stream_read_preference.js test
jstests/sharding/query/change\_streams/change\_stream\_read\_preference.js samples $indexStats accesses.ops for the _id_ index on each shard secondary around the change\-stream getMore and asserts the delta is exactly 1 — the optimized post\-image update lookup.
Mirrored reads can break that assertion: an update served by the shard primary is mirrored to a secondary as a synthesized find of its filter \(CmdUpdate::supportsReadMirroring, write\_commands.cpp\), recording an extra _id_ index acces
Fixed Versions
9.1.0-rc09.1.0-rc1026
SERVER-139437In Progress
Reads' operationTime must cover data read by parallel query workers
Fixed Versions
9.1.0-rc09.1.0-rc1026
SERVER-134367ClosedFixed
Integration of Scan stages with transaction processing
Enhance OperationContext to ensure the transactional correctness of parallel scan stages
# scan stages should see only the snapshot in which the original query was placed when it was started
# is it possible to resynchronize after yielding of single threads?
# coordinate detaching of OperationContext from the main query to the parallel threads
Include writing unit tests stressing the locking part; e.g.
# parallel scan with DOP > number_of_cores reading a collection that is being comp
Fixed Versions
9.1.0-rc09.1.0-rc1026
NODE-7902Needs Review
Update dependencies for zstd
h3. AC
* Merge dependabot PRs that are safe to merge (semver-compatible updates, including any standalone package-lock-only PRs)
* When updating the dev dependencies to latest available semver compatible versions ANY reformatting MUST be done in a separate pull request and should ONLY be done if the team agrees that it is an important improvement
* Check dev dependency major version updates
** Update the major version if and ONLY if this can be done with minimal code changes; otherwise, file
SERVER-135715In Progress
Refactor samples calculation to conform to samples manager interface
*Refactor current analyze_cmd.cpp run methods into reusable stats refreshers*
SERVER-137759ClosedFixed
Complete TODO listed in SERVER-117506
There is a TODO in code owned by your team which references a resolved ticket.
The TODO appears in:
* src/mongo/db/query/compiler/optimizer/join/join_cost_estimator.h:42
You can also search for all references to the resolved ticket here:
https://github.com/10gen/mongo/search?q=SERVER-117506&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 to
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-136150ClosedFixed
Require querySettings action privilege for $_internalListQuerySettings
*$_internalListQuerySettings* lacks the required querySettings action privilege allowing unintended information disclosure.
Affected Versions
9.0.3
Fixed Versions
9.1.0-rc09.0.79.1.0-rc1026
PYTHON-6216ClosedGone away
GridFS fails to read files with integral BSON Decimal128 length or chunkSize metadata
h3. Detailed steps to reproduce the problem?
_Include full traceback, if possible_
h3. Definition of done: what must be done to consider the task complete?
h3. The exact Python version used, with patch level:
{{$ python -c "import sys; print(sys.version)"}}
h3. The exact version of PyMongo used, with patch level:
{{$ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"}}
h3. Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.
Components
GridFS
PYTHON-6217ClosedGone away
GridFS upload_from_stream does not delete already-uploaded chunks when the source stream raises
h3. Detailed steps to reproduce the problem?
_Include full traceback, if possible_
h3. Definition of done: what must be done to consider the task complete?
h3. The exact Python version used, with patch level:
{{$ python -c "import sys; print(sys.version)"}}
h3. The exact version of PyMongo used, with patch level:
{{$ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"}}
h3. Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.
SERVER-138064ClosedFixed
Get types out of subpipeline in the dependency graph
canPathBeArrayFromFieldMetadata checks the subpipeline with getSubpipelineForPath.
We should reuse that logic for subpipeline checks and use it in getType too.
We should also take this opportunity to make getConstant also check the subpipeline, such that the three metadata accessors (arrayness, type, constants) operate the same.
Fixed Versions
9.1.0-rc09.1.0-rc1025
SERVER-137195In Progress
block drop command with inbound fk constraints
Ensure collections with FK outbound constraints can be dropped.
Block collection drop of parent collections (when inbound constraints exist).
Also test $out / rename with drop (or similar).
SERVER-107842In Code Review
Improve error message emitted by mongos when 'QueryExceededMemoryLimitNoDiskUseAllowed' is thrown, but 'allowDiskUseByDefault' is set to 'true'
As the title describes, his ticket tracks the work to improve error message emitted by mongos when 'QueryExceededMemoryLimitNoDiskUseAllowed' is thrown, but 'allowDiskUseByDefault' is set to 'true'.
Following the decision to not pursue SERVER-87735 given that the performance hit of this change (from executing merging $groups/spilling stages on the shards instead of on the router) is too significant, we should improve the error mentioned above to clarify that 'allowDiskUseByDefault' is ignore
Fixed Versions
9.1.0-rc09.1.0-rc1026
SERVER-138856ClosedFixed
Change streams maxTimeMS metric should be maxAwaitTimeMS
The change stream {{aggregate}} command’s {{maxTimeMS}} and the cursor’s {{getMore}} {{maxAwaitTimeMS}} represent different options. The metric is intended to measure the cursor wait option ({{{}maxAwaitTimeMS{}}}), but its current name and test behavior can imply that it measures {{maxTimeMS}} on {{{}aggregate{}}}.
Update the metric and its coverage so they reflect the intended option and match customer-facing terminology.
We should do the following;
* Update the Extend Change Streams M
Components
Change streams
Fixed Versions
9.1.0-rc09.1.0-rc1026
SERVER-110439ClosedWon't Do
Unify spilling metrics reported in serverStatus
All spilling stages should report 4 metrics to serverStatus
spills : number of times the stage spilled,
spilledBytes : number of spilled bytes,
spilledRecords : number of spilled records,
spilledDataStorageSize : size of spilled data on disk
From all stages that spill, Spool (classic) does not report any metrics in ServerStatus while Sort reports spillToDisk and spillToDiskBytes. We should fix those two stages to report the same metrics as the rest of the spilling stages.
SERVER-130246ClosedFixed
Enforce strict: false on IDL reply structs to prevent mixed-version breakage
h3. Background
When a new field is added to a command reply via {{generic_argument.idl}} or a dedicated reply IDL struct, an older mongos (or shard acting as sub-router) parses the reply from a newer binary using a strict IDL struct ({{{}strict: true{}}}), and rejects the unknown field with {{{}IDLUnknownField{}}}. This cannot be gated behind FCV because FCV only tracks major.minor, not patch versions.
This issue was surfaced in SERVER-128128 and discussed in #server-dev-platform. The cons
Fixed Versions
9.1.0-rc0
SERVER-139330ClosedFixed
Remove exclusion of secondary_reads_waitForShardingInit.js from no_passthrough_disagg_override_sharded
The change in -SERVER-138952- was intended to adapt and re-enable {{jstests/sharding/secondary_reads_waitForShardingInit.js}} in the {{no_passthrough_disagg_override_sharded}} suite. However, the merge with master did not apply correctly, and the test remains excluded.
As part of this ticket, we should remove the exclusion so the test runs as part of {{{}no_passthrough_disagg_override_sharded{}}}.
Fixed Versions
9.1.0-rc09.1.0-rc1026
SERVER-136285ClosedFixed
Possibly-dangling collator pointer after ExpressionSortArray clone
Prior to SERVER-119491 (added in 9.0), we had this cloneUsingNewExpCtx logic which used to serialise and reparse an expression tree using a new ExpressionContext. This re-creates the expression and therefore could not have pointers dangling to the previous expression context.
After SERVER-119491, the clone method of all expressions was updated to accept a target ExpressionContext* for the cloned result.
In clone(), ExpressionSortArray, ExpressionTopN, ExpressionTop, ExpressionBotton and Ex
Fixed Versions
9.1.0-rc09.0.79.1.0-rc1026