5.0 Changelog
On this page
5.0.15 Changelog
Sharding
SERVER-68361 LogTransactionOperationsForShardingHandler::commit misses transferring documents from prepared and non-prepared transactions changing a document's shard key value
SERVER-71092 shard_id_test.cpp relies on a pure behavior of std::string::compare function
SERVER-71219 Migration can miss writes from prepared transactions
SERVER-71305 Legacy shard collection path waits on wrong opTime to be majority committed (5.0 and older)
SERVER-71689 Refresh the CatalogCache before dropping the local collection
SERVER-72301 Use ordered:false when inserting chunks in optimized path of create collection
SERVER-72430 MigrationDestinationManager::report() may access null _migrationCloningProgress
SERVER-73916 Improve ReshardingTest fixture error reporting when reshardCollection has already failed before any failpoints are waited on
Query
SERVER-58712 Inconsistent update performance on collections with multiple secondary indexes on same key
Operations
SERVER-67704 Add count of cpu sockets to FTDC metadata
SERVER-67705 Add count of NUMA zones to FTDC metadata
Build and Packaging
SERVER-38232 Mongod on Ubuntu 16/18 does not create a pid file
Internals
SERVER-49705 'permitted' file may have been deleted by 'after_test'
SERVER-54900 Blocking networking calls can delay sync-source resolution indefinitely
SERVER-60839 Introduce a TemporarilyUnavailable error type
SERVER-63104 Make it easy to run jsCore locally again in a world with tests tagged by feature flag
SERVER-64764 $expr rewrite is not prepared to handle "$$ROOT"
SERVER-65177 Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms
SERVER-65259 Cursor leak in aggregation that requires merging on shard
SERVER-65881 Support sort-limit optimization with bounded sort stage
SERVER-66050 findSelfInConfig should attempt fast path for every HostAndPort before trying slow path
SERVER-66106 sharded_moveChunk_partitioned.js failed moveChunk check may be incorrect (only pre-6.0)
SERVER-66466 Remove TransportLayerASIOTest dependence on ThreadContext
SERVER-66570 Timeseries pushes down metaField-projections that can change semantics
SERVER-67183 Higher throughput Chunk Migration - reimplement for fetching and insertion
SERVER-67390 backup_restore.js should check for code -SIGINT due to unclean SIGINT
SERVER-67406 Sorting a cursor on sharded coll returns documents that are missing $-prefixed fields
SERVER-67446 Ensure consistent wildcardProjection and columnstoreProjection specs in catalog
SERVER-68122 Investigate replicating the collection WiredTiger config string during initial sync
SERVER-68388 Limit concurrency setting and update server parameter name
SERVER-68434 Equality to null can incorrectly use a cached partial ixscan which does not cover the predicate
SERVER-68576 We need to know how many sharded collections exist in a cluster
SERVER-68647 Create feature flag
SERVER-68648 Enable feature flag
SERVER-68739 Add WiredTiger session statistic without affecting slow op statistics
SERVER-68836 Properly handle NaN and 0 in for LDAPTimeoutMS
SERVER-68853 Remove invariant that a session stat needs to be a slow op stat
SERVER-68901 Incorrect $elemMatch query analysis in mongocryptd if document contains 2 different fields with the same name
SERVER-69944 Resmoke's globstar.py does not properly parse
*
before**
SERVER-70139 listCollection returns duplicate view names
SERVER-70323 Convert invariant to tassert in collection_sharding_runtime
SERVER-70369 Create serverParameter for migrationConcurrency
SERVER-70394 Fix self-swap in MultiPlanStage::removeRejectedPlans
SERVER-70427 Remove chef+kitchen package test infrastructure
SERVER-70553 Add module support to the mongo test runner
SERVER-70566 Make assertion in backup_restore.js print error code
SERVER-70594 Add updated build variants to sys-perf
SERVER-70640 Add migrationConcurrency to serverStatus
SERVER-70830 Unit test WiredTigerOperationStats
SERVER-71006 Small window of inconsistency for reads after turning index to multikey
SERVER-71020 Ensure aborting time series batch eventually removes bucket from catalog
SERVER-71055 OplogOrder test can read stale all_durable timestamp after rolling back oplog entries
SERVER-71191 Deadlock between index build setup, prepared transaction, and stepdown
SERVER-71291 Variant "
*
Enterprise RHEL 8.0" should not have a .publish fileSERVER-71373 Extend assert.soon timeout inside predictive_connpool.js
SERVER-71399 Jumbo chunk flag isn't automatically cleared after a chunk split
SERVER-71424 Fix failures in lint_fuzzer_sanity
SERVER-71436 Range deleter must not aggressively spam the log when shard key index not found
SERVER-71449 Fix log_successs_msg: not found in init.d on debian
SERVER-71471 Improve jstestfuzz deployment to work with new node run/install
SERVER-71533 Update legacy task generation to use new test stats location
SERVER-71534 lint_fuzzer_sanity_all regression caused by running multiple instances of npm
SERVER-71597 Fix race condition on createDatabase for case sensitive dbName
SERVER-71632 Re-enable dropDatabase FSM test in stepdown suites
SERVER-71648 [v5.0] txn_index_catalog_changes.js runs on storage engines that do not support snapshot reads
SERVER-71691 Error 5643004 when using $setWindowFields in a facet
SERVER-71759 dataSize command doesn't yield
SERVER-71769 Add a new log message when a secondary node is skipping a two-phase index build
SERVER-71939 Update BucketCatalogTest::Task class with failpoint
SERVER-71950 Fail and log the operation when out-of-order keys are detected in WiredTiger
SERVER-71969 Update system_perf.yml for compile-variant and compile_variant.
SERVER-72005 Enable TSBS on 2022-11 sys-perf variants
SERVER-72046 Concurrent chunk migration testing
SERVER-72091 Enable auth-delay sys-perf variant
SERVER-72143 Fix sys-perf logkeeper links on 5.0 and 4.4
SERVER-72176 MetadataManagerTest must reset orphanCleanupDelaySecs to the default value on teardown
SERVER-72185 TSBS perf test definition depends on a personal github repo
SERVER-72222 MapReduce with single reduce optimization fails when merging results in sharded cluster
SERVER-72276 Remove all outdated entries from backports_required_for_multiversion_tests.yml
SERVER-72288 microbenchmark tests fail after "Enable M1 Mac support for DSI"
SERVER-72449 backup_restore.js should check for code 2 when killing child resmoke client
SERVER-72512 Indexes reported as valid when unable to return inconsistencies due to memory limit
SERVER-72535 Sharded clusters allow creating the 'admin', 'local', and 'config' databases with alternative casings
SERVER-72576 Notarize archive-dist binaries on macOS
SERVER-72613 Speed up taking core dumps with the hang analyzer
SERVER-72619 Refactor and add more testing for migration_chunk_cloner_source changes
SERVER-72620 $indexStats doesn't include the "shard" field when run on unsharded collections
SERVER-72677 Full validation doesn't always report information about indexes
SERVER-72825 Remove all outdated entries from backports_required_for_multiversion_tests.yml
SERVER-72868 Complete TODO listed in SERVER-30949
SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views
SERVER-72910 [v5.0] Backport wtRCToStatus changes from SERVER-60839
SERVER-73176 Only print error message if there were in fact errors in getHostFQDNs
SERVER-73183 WiredTigerKVEngine::getSanitizedStorageOptionsForSecondaryReplication should skip inMemory
SERVER-73216 Upgrade BlackDuck to Detect v8
SERVER-73228 Remove active directory server from jstests/external_auth/ldap_mongos_health_checking.js
SERVER-73232 Change the default log-verbosity for _killOperations
SERVER-73264 Fix wrong invariant in MigrationChunkClonerSource::commitClone
SERVER-73389 Checkpoint vector clock in drop database coordinator
SERVER-73481 Validate does not detect out-of-order keys with {full: false}
SERVER-73636 Coverity analysis defect 135025: Inefficient vector resizing with reserve.
SERVER-73706 Save WTRecordStoreUassertOutOfOrder fail point state to prevent concurrency bugs in testing
SERVER-73719 Comment out Legacy Build Variants in Sys-perf
SERVER-73745 Zero initialize IndexKeyBucket struct
WT-8290 Adding a new API to the session to return the rollback reason
WT-8379 Do not disable eviction during shutdown
WT-8651 Allow checkpoint scrub during shutdown
WT-8652 Do not skip the final metadata checkpoint when shutdown configured with use_timestamp=true
WT-9268 Delay deletion of the history store record to reconciliation
WT-9428 Fix two asserts in rec_visibility.c
WT-9592 Rollback to stable should also clear WT_UPDATE_TO_DELETE_FROM_HS flag
WT-9705 Fix accidentally freeing update on the update chain in prepared commit
WT-9751 Fix a memory leak in reconciliation after aborted eviction
WT-9765 Fix handling a prepared commit after a prepared rollback with eviction failure
WT-9792 Fix RTS to remove globally visible update of the data store update from the history store
WT-9805 Save the updates need to be deleted from history store and delete them later
WT-9926 A crash during startup from backup can lose metadata
WT-10081 Fix failure format configs for older branch
WT-10250 Remove certain Evergreen builders for release branches
WT-10257 Fix data-validation-stress-test-checkpoint-fp-hs-insert-s7 in 5.0
WT-10291 Ensure failure configs task executes test format once per configuration.
WT-10461 Fix key out of order in skip list on weakly ordered architecture
WT-10584 Add missing read barriers in __cursor_skip_prev
5.0.14 Changelog
Sharding
SERVER-60143 Avoid clearing filtering metadata after failed metadata refresh
SERVER-68139 Resharding command fails if the projection sort is bigger than 100MB
SERVER-68361 LogTransactionOperationsForShardingHandler::commit misses transferring documents from prepared and non-prepared transactions changing a document's shard key value
SERVER-69134 Dropping a sharded collection doesn't get rid of the CSS entry
SERVER-69444 Make the joining of concurrent critical section and refresh look the same between DSS and CSS
SERVER-69700 Replication rollback fails resharding_coordinator_recovers_abort_decision.js
SERVER-69756 Segmentation fault on abortReshardCollection issued right after reshardCollection cmd
SERVER-70364 Retry configureFailPoint command on network error (resharding_coordinator_recovers_abort_decision.js)
SERVER-70373 Invariant failure in case resharding metrics are not restored
SERVER-70793 Make database metadata refresh first check new metadata under the IS lock before taking X lock
SERVER-71092 shard_id_test.cpp relies on a pure behavior of std::string::compare function
SERVER-71305 Legacy shard collection path waits on wrong opTime to be majority committed (5.0 and older)
Query
SERVER-66289 $out incorrectly throws BSONObj size error on v5.0.8
SERVER-70381 _internalSearchIdLookup stage violates a 5.0 precondition of the getOwnershipFilter function
Operations
SERVER-67793 log_progress_msg in init.d does not print message
Build and Packaging
SERVER-48203 Support --install-action for Ninja builds
SERVER-64289 Platform Support: Add support for RHEL7 PPC in 5.0.X
SERVER-69507 Rpath should only be set on dynamic builds
Internals
SERVER-54284 ExceptionFor<ErrorCodes::WriteConflict> should resolve to WriteConflictException
SERVER-57072 Explore upgrading wheel on all platforms.
SERVER-60016 serverStatus and collection stats should not block on the RSTL lock
SERVER-61185 Use prefix_search for unique index lookup
SERVER-63104 Make it easy to run jsCore locally again in a world with tests tagged by feature flag
SERVER-63585 Fastcount gets out of sync when a delete rollbacks and another transaction deletes the same rows
SERVER-66525 errexit prevents capturing pip install log
SERVER-66972 Database critical section does not serialize with ongoing refreshes
SERVER-67385 Range deletion tasks may be wrongly scheduled before ongoing queries on range finish on a shard primary
SERVER-67538 Multi-doc transactions should fail if on an old, incompatible snapshot
SERVER-67681 Create specific target for compile commands
SERVER-68115 Bug fix for "elemMatchRootLength > 0" invariant trigger
SERVER-68477 Improve NaN-handling for expireAfterSeconds TTL index parameter
SERVER-68901 Incorrect $elemMatch query analysis in mongocryptd if document contains 2 different fields with the same name
SERVER-69001 Initial sync should set the minValid document to the "stopTimestamp"
SERVER-69133 remove redundant setting of hardlink install action
SERVER-69281 Force minimum ninja version
SERVER-69348 Commands must declare empty auth checks to be universally callable
SERVER-69380 $_internalUnpackBucket stage can incorrectly swap with a $project if an inclusion projection has already been absorbed
SERVER-69389 Command checkAuthorization may throw ErrorCodes::NamespaceNotFound for existing collection while trying to resolve UUID to namespace when the node is shutting down.
SERVER-69446 Increase electionTimeoutMillis in jstests/replsets/dbcheck_write_concern.js
SERVER-69569 Python scripts failing in Evergreen tasks
SERVER-69784 Fix instances of signed char misuse
SERVER-69868 Return an error when starting a TransportLayer that is shutdown
SERVER-69898 Wait for the critical section catch-up phase before refreshing the DB version
SERVER-69912 SConstruct is executable by mistake
SERVER-69926 errorcodes.py doesn't detect duplicate errors in MONGO_UNREACHABLE_TASSERT
SERVER-69930 Unexpected error message in the logs attempting to refresh the version of a dropped database
SERVER-70062 Log pertinent info about oplog entries in oplog rolled over restore failure
SERVER-70160 Do not push down $match that needs whole document before $internalUnpackBucket
SERVER-70299 Remove JSON.send command usage
SERVER-70314 Adjust time series extended range tests to account for log retention limitations
SERVER-70348 Remove EAGAIN for queryable WT and retry internally
SERVER-70469 Use virtual env python in watchdog tests
SERVER-70483 Update Resmoke to pass "evergreen_execution" up to logkeeper.
SERVER-70484 Remove signal processing module from perf.yml and sys_perf.yml
SERVER-70557 Increase timeout for integration_tests_sharded on s90x
SERVER-70633 Make per shard cursors suite actually run tests in 5.0
SERVER-70879 Fix race where multiple threads are turning an index multikey concurrently
SERVER-71055 OplogOrder test can read stale all_durable timestamp after rolling back oplog entries
WT-8234 Prevent eviction of internal pages while reconciling leaf pages which could refer to their memory
WT-9323 Fix a race tracking whether a tree has updates after a checkpoint
WT-9599 Acquire the hot backup lock to call fallocate in the block manager
WT-9763 Return EBUSY if the time window of inserting record does not match with history store time window
5.0.13 Changelog
Sharding
SERVER-68094 Resharding with custom generated _id fails with projection error
SERVER-68139 Resharding command fails if the projection sort is bigger than 100MB
SERVER-68869 A retry of _configSvrReshardCollection can succeed causing resharding_coordinator_recovers_abort_decision.js to fail
SERVER-69142 A retry of _shardsvrReshardCollection can cause DuplicateKey error (resharding_nonblocking_coordinator_rebuild.js)
SERVER-69220 refineCollectionShardKey permits toggling current shard key fields between range-based and hashed, leading to data inconsistency
SERVER-69384 Fix v5.0 legacy shardCollection path for implicitCreateIndex parameter
SERVER-69700 Replication rollback fails resharding_coordinator_recovers_abort_decision.js
Write Operations
SERVER-50454 Avoiding sending the "keyValue" field to drivers on duplicate key error
Internals
SERVER-58673 Enable featureFlagPerShardCursor
SERVER-60551 Occasionally getting "Initialized wire specification" when connecting
SERVER-61185 Use prefix_search for unique index lookup
SERVER-62400 Add $_passthroughToShard parameter to AggregateCommandRequest
SERVER-62681 Create change streams per shard cursor passthrough suite
SERVER-62738 Give mongos the ability to passthrough to a specific shard
SERVER-63772 Post Batch Resume token not sent on initial batch from per shard cursor change stream
SERVER-63773 Per Shard cursor post batch resume token not set in getMore responses
SERVER-63774 Pass optional dbVersion to runPipelineOnSpecificShard
SERVER-63781 $sortKey not filtered out in initial batch from post batch resume token
SERVER-65006 Write conflict on commitIndexBuild oplog entry insertion can cause multikey to fail to be set
SERVER-66794 Add an in-memory flag for TS collections having dates outside years 1970-2038
SERVER-67402 Linearizable reads can occasionally read with wrong read source
SERVER-67538 Multi-doc transactions should fail if on an old, incompatible snapshot
SERVER-67650 Resharding recipient can return remainingOperationTimeEstimatedSecs=0 when the oplog applier hasn't caught up with the oplog fetcher
SERVER-67653 Resharding coordinator can incorrectly conclude that it can start the critical section although on one recipient the oplog applier hasn't caught up with the oplog fetcher
SERVER-67725 Check catalog consistency on shards as precondition for rename
SERVER-67916 Race during stepdown can trigger invariant in ReshardingMetrics
SERVER-68003 Make experiment_unified_ninja.vars the default
SERVER-68126 Check for negative maxChunkSize input value in AutoSplitVector
SERVER-68691 $graphLookup does not report variable references for 'restrictSearchWithMatch' filter
SERVER-69002 [5.0] backport pm-2419 Per Shard Cursors via mongos
SERVER-69108 SCCL can immediately return config and admin metadata without triggering a refresh
SERVER-69547 Add multiversion_incompatible tag to show_raw_update_description*.js
SERVER-69590 libunwind warnings on clang arm platforms
SERVER-69611 Set the -ffp-contract=off compiler option by default
SERVER-69693 Use lambda instead of repeating code in resharding coordinator
SERVER-69785 robustify change_streams_per_shard_cursor.js
WT-9870 Fix updating pinned timestamp whenever oldest timestamp is updated during recovery
5.0.12 Changelog
Sharding
SERVER-63732 Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command
SERVER-64142 Add new enforceUniqueness to refineCollectionShardKey command
SERVER-68728 Add addl. activation condition for interruptBeforeProcessingPrePostImageOriginatingOp fail point
SERVER-68869 A retry of _configSvrReshardCollection can succeed causing resharding_coordinator_recovers_abort_decision.js to fail
SERVER-69142 A retry of _shardsvrReshardCollection can cause DuplicateKey error (resharding_nonblocking_coordinator_rebuild.js)
Replication
SERVER-62636 setFeatureCompatibilityVersion 4.4 succeeds on 5.0 binVersion that has indexes with conflicting options
Internals
SERVER-58176 Mongos does not validate readConcern on insert/update/delete commands
SERVER-58966 timeseries_granularity.js and timeseries_timestamp_rounding.js collide on test namespaces in parallel suite
SERVER-59834 $group with allowDiskUse doesn't clean up _tmp files
SERVER-60958 Avoid server hang in chunk migration when step-down event occurs
SERVER-63843 Don't allow recursive doLog in synchronous signal handlers
SERVER-63852 getThreadName() should not crash
SERVER-64573 Make implicitlyCreateIndex and enforceUniquenessCheck fields optional
SERVER-64741 Create mongos appendOplogNote command
SERVER-65006 Write conflict on commitIndexBuild oplog entry insertion can cause multikey to fail to be set
SERVER-65382 AutoSplitVector should not use clientReadable to reorder shard key fields
SERVER-66794 Add an in-memory flag for TS collections having dates outside years 1970-2038
SERVER-67126 Remove LOGV2 call from printStackTrace no-LOGV2 codepath
SERVER-67280 Ensure HealthObserver::periodicCheckImpl() implementations handle exceptions and return an appropriate failing health check status when one occurs
SERVER-67725 Check catalog consistency on shards as precondition for rename
SERVER-67814 Track the number of time-series collections with dates outside 1970-2038 in serverStatus
SERVER-67939 run_dbcheck_background.js should be resilient to CappedPositionLost
SERVER-68039 Old pymongo version 3.10.1 on MongoDB v5.0 causes Invariant failure (message.operation() == dbMsg) after connection reset by peer
SERVER-68399 Fix parsing of safeint version numbers in blackduck_hub.py
SERVER-68482 [5.0] Add TSAN exclusion to getFlowControlStats
SERVER-68538 Typo in dependencies list in RPM config forces to fail installing mongodb enterprise in amazon linux 1
SERVER-68540 Add docker_incompatible tag for jscore tests
SERVER-68694 Investigate the locking around the compact command
SERVER-68737 remove multiversion test from debian11 5.0
SERVER-68766 Add option to re-enable single value MapReduce optimization
SERVER-68925 Reintroduce check table logging settings at startup (revert SERVER-43664)
SERVER-69052 Ensure bucket collection is valid when checking for extended range
SERVER-69141 [6.1] Move forward pinned TSBS version
5.0.11 Changelog
Sharding
SERVER-56185 Investigate possible improvements with session migration and a chunk migration's critical section
SERVER-61985 resharding_coordinator_recovers_abort_decision.js may report resharding operation as succeeding due to primary shard retrying _configsvrReshardCollection and running a second resharding operation
SERVER-64340 Warn if balancer is disabled while draining shard
SERVER-67492 Failed chunk migrations can lead recipient shard to have divergent config.transactions records between primary and secondaries
SERVER-68431 resharding_test_fixture doesn't configure failpoints for all nodes of config server
SERVER-68495 Resharding a collection with a very large number of zones configured may stall on config server primary indefinitely
SERVER-68628 Retrying a failed resharding operation after a primary failover can lead to server crash or lost writes
SERVER-68728 Add addl. activation condition for interruptBeforeProcessingPrePostImageOriginatingOp fail point
Query
SERVER-43155 Queries which exceed maxTimeMS may return NetworkInterfaceExceededTimeLimit
SERVER-66072 $match sampling and $group aggregation strange behavior
Build and Packaging
SERVER-61894 Support the 'showRawUpdateDescription' option in change stream specs
SERVER-63159 Implement the $_internalApplyOplogUpdate aggregation stage
Internals
SERVER-60607 improve handling of large/NaN values for geo index version
SERVER-60958 Avoid server hang in chunk migration when step-down event occurs
SERVER-61321 Improve handling of large/NaN values for text index version
SERVER-62747 proxy_protocol_connect.js needs to use the loopback address for Docker containers
SERVER-65262 Expand usage of WT numerical timestamp API
SERVER-65884 $lookup from time-series can place $sequentialCache after correlated $match
SERVER-66023 Do not constantly reset election and liveness timers
SERVER-66310 Make ExpressionSetUnion::isCommutative() collation aware
SERVER-66548 $lookup sequential cache can incorrectly treat a $facet as non-correlated
SERVER-66651 Role "restore" not sufficient for mongorestore --preserveUUID
SERVER-66726 Fix serialization in killAllSessionsByPattern
SERVER-66841 LOGV2: invalid JSON when truncation happens at a backslash character
SERVER-66938 Drastically simplify command to generate ninja files
SERVER-67122 Add warning when building with --module=ninja that it is deprecated
SERVER-67296 Mark the OpCtx of the configsvr commands used to commit chunk-related DDL ops as interruptible
SERVER-67305 Lock-free reads setup should validate writes permitted before and after setting up snapshot.
SERVER-67523 Must clear _nextCall on reschedule failure in delayable_timeout_callback
SERVER-67532 Fail less in OplogServerStatusSection
SERVER-67683 Change some of the modes in fast and opt builds
SERVER-67845 Acquire critical section in rename "check preconditions" phase only if target not sharded
SERVER-67939 run_dbcheck_background.js should be resilient to CappedPositionLost
SERVER-68041 Robustify merge_write_concern.js and add diagnostic log
SERVER-68130 AutoSplitVector could generate response bigger than BSONObjMaxUserSize
SERVER-68158 serverstatus_indexbulkbuilder.js should run listIndexes on primary after creating indexes
SERVER-68184 Use Number instead of NumberLong when indexing in checkWritesOfCommittedTxns
SERVER-68193 Sharding DDL coordinator can lock itself out in distlock retry loop
SERVER-68487 add BSONElement method to check for NaN field values
SERVER-68511 movePrimary might introduce sharding metadata inconsistency in MongoDB 5.0+
SERVER-68522 Prevent 5.0 binary from starting in FCV 4.4 with misconfigured TTL index
SERVER-68540 Add docker_incompatible tag for jscore tests
SERVER-68574 Switch to the new logkeeper cluster
SERVER-68737 remove multiversion test from debian11 5.0
WT-8847 Add tombstone to WT_SAVE_UPD to truncate the update list upon page restore
WT-9004 Fix memory leak in update restore eviction
WT-9302 Deprecated object_target_size as a config in api_data.py
WT-9311 Ensure log messages clearly identify storage HW corruption
WT-9477 Don't allow checkpoint triggering internal page split which leads to corrupted internal page in the checkpoint
WT-9500 Fix RTS to use cell time window instead of key/value timestamps of HS update
5.0.10 Changelog
Sharding
SERVER-57519 Make ARS use causally consistent ShardRegistry::getShard() function
SERVER-62272 Adding schema validation to a collection can prevent chunk migrations of failing documents
SERVER-62432 Ensure safe access to ShardingDDLCoordinator instance state documents
SERVER-62656 Decouple mongos-to-config-server connection pool sizing from mongos-to-shard-server connection pool sizing
SERVER-63243 Range deleter must not clean up orphan ranges in a round-robin fashion
SERVER-64433 A new topology time could be gossiped without being majority committed
SERVER-65027 Resharding commands permit extra options without returning an error
SERVER-65821 Deadlock during setFCV when there are prepared transactions that have not persisted commit/abort decision
SERVER-65925 shardsvrCommitReshardCollection should check for transient errors when joining
SERVER-65930 DDL coordinators and rename participant initial checkpoint may incur in DuplicateKey error
SERVER-66046 Resharding coordinator won't automatically abort the resharding operation when a recipient shard errors during its applying phase
SERVER-66618 Ensure ReshardingCoordinator has aborted in resharding_coordinator_recovers_abort_decision.js
SERVER-66866 The range deleter waits between batches while holding the collection IX lock
SERVER-67457 Resharding operation aborted in the midst of contacting participants may stall on config server primary indefinitely
JavaScript
SERVER-61234 JS object-based types are not properly auto-serialized when directly returned by server-side JS functions
Build and Packaging
SERVER-66627 Backport the install-devcore target
Internals
SERVER-57938 Skip polygon validation for stored GeoJSON when query has $geoIntersect and a 2dsphere index
SERVER-58257 Add better diagnostics to predictive_connpool.js
SERVER-59658 Improve logging to reflect that sharding metadata refresh waiting on replication
SERVER-61856 Upgrade libunwind to 1.6.2+
SERVER-62386 Coverity analysis defect 121298: Parse warning
SERVER-62716 Handle spurious finishWaitingForOneOpTime in WaitForMajorityServiceTest
SERVER-63271 serverStatus can fail the server
SERVER-63493 update-shard-key tests failing due to transaction lock timeouts
SERVER-63971 Change server parameter to default to read-your-writes behavior after 2PC transaction
SERVER-64215 Interrupt OplogBufferMock::waitForData on shutdown
SERVER-64244 RunDBCheckInBackground should be resilient to interrupts
SERVER-64509 Fix ShardRegistry threadpool shutdown order
SERVER-64627 Need general method to handle in-memory state after initial sync
SERVER-64628 More testing of adding nodes to sharded sets
SERVER-64659 Report in serverStatus number of file descriptors used during index builds
SERVER-64725 Make ShardRegistry::periodicReloader interruptible
SERVER-64797 Use WT's new numerical timestamp API
SERVER-65100 Increase memory block size for BSONColumn
SERVER-65131 Disable opportunistic read targeting (except for hedged reads)
SERVER-65313 Use BatchedCollectionCatalogWriter during startup recovery
SERVER-65371 MigrationSourceManager running on secondary node may trip invariant
SERVER-65399 'commitIndexBuild' oplog entry is a no-op for unfinished index builds not restarted
SERVER-65723 Add tunable parameter to improve batching on secondaries
SERVER-65777 "revokePrivilegesFromRole" param.ns missing user object in audit log
SERVER-65797 Remove invalid index specs in memory before parsing for listIndexes
SERVER-66087 Call curl_global_init before threading enabled
SERVER-66111 Curl implementation of HTTPClient should respect default timeouts
SERVER-66319 dbcheck_no_history_on_secondary.js disables dbCheck failpoint too early
SERVER-66379 $or to $in conversion flawed
SERVER-66384 Enable command line customization of NINJA_BUILDDIR
SERVER-66418 Bad projection created during dependency analysis due to string order assumption
SERVER-66433 Backport deadline waiting for overlapping range deletion to finish to pre-v5.1 versions
SERVER-66461 Run notarization earlier in the build process
SERVER-66520 add index build UUID to BackgroundOperationInProgress error messages
SERVER-66556 Prevent potential race when releasing cursors during shutdown
SERVER-66559 Expand the internalQueryMaxAddToSetBytes param from 32 to 64 bits
SERVER-66658 Shard registry might be accessed before initialization
SERVER-66727 Time-series bucket can be created that violates max time-span
SERVER-66769 Update spawnhost setup script to support Windows hosts via cygwin
SERVER-66799 Fix getParameterWithDetails.js failure on ephemeralForTest
SERVER-66843 Use defensive programming in DeadlineFuture destructor
SERVER-66860 FSM tests should not reuse same database names
SERVER-66902 Multiversion setup is consistently failing on the mongodb-mongo-v5.0 Evergreen project
SERVER-66955 Remove JSON.send usage in perf projects
SERVER-67014 Say that "the client driver may require an upgrade" in warning message for deprecated op codes in 5.0
SERVER-67106 The _flushRoutingTableCacheUpdates() command should be able to also serve requests referencing collection views.
SERVER-67167 DIsable or_to_in.js from running in the parallel suite
SERVER-67220 [5.0] set_fcv_prepared_transaction.js is not resilient to StaleConfig errors
SERVER-67405 Handle empty string for is_patch evergreen expansion
SERVER-67513 Disable or_to_in for jsCore_compatibility for v5.0
WT-8425 Push updates with the same commit timestamps in the out_of_order_ts_updates vector in hs_rec.c.
WT-8669 Assert that the timestamps are not OOO in __hs_insert_record
WT-9249 Compare and fix the start durable timestamp if it is greater than ooo timestamp
WT-9251 Perform log flush before the metadata checkpoint
5.0.9 Changelog
Sharding
SERVER-62175 Mongos fails to attach RetryableWrite Error Label For Command Interrupted In _parseCommand
SERVER-62432 Ensure safe access to ShardingDDLCoordinator instance state documents
SERVER-64822 Sharding an empty collection releases the critical section too early
SERVER-66041 Chunk cloner must never consider too big a chunk with only one document
Query
SERVER-63642 Add serverStatus metrics to measure multi-planning performance
Build and Packaging
SERVER-42470 Generate additional configuration for libunwind
SERVER-64332 Notarize MongoDB builds for macos
SERVER-66386 Update AMI images for package tests
Internals
SERVER-57546 Increase test-specific timeouts for roles lock acquisition
SERVER-58337 Log deprecation warning and bump serverStatus counter upon receipt of OP_QUERY command
SERVER-60758 Prevent dbVersion refreshes from failing transactions in txn_recover_decision_using_recovery_router.js
SERVER-61018 Create a generic histogram type
SERVER-61110 Fix locking in AuthorizationContract::contains
SERVER-61460 Resmoke should merge config_svr options with mongod_options rather than overriding them
SERVER-62941 Update FTDCServerStatusCommandCollector to include oplog metrics from serverStatus command
SERVER-62992 Remove need for resmoke.ini
SERVER-63254 Add Index usage metrics to serverStatus
SERVER-63796 Enable Feature flag for PM-2750
SERVER-63850 Add the count command to API version 1
SERVER-64664 ninja tool should not consider install files generated source
SERVER-64815 Prevent buildindexes_false_commit_quorum.js from running in multiversion tests
SERVER-65137 detect namespace changes when refreshing Collection after yielding
SERVER-65166 Use compareOptimes in abort_in_progress_transactions_on_step_up.js
SERVER-65184 Avoid concurrent election and stepdown in downgrade_default_write_concern_majority.js
SERVER-65271 serverStatus should allow fine-grained metrics exclusion
SERVER-65636 Remove limits on number of LDAP connections per host
SERVER-65861 Remove enterprise-rhel-83-s390x from mh_variants on 5.0
SERVER-65995 Reduce Evergreen cron frequency on older branches
SERVER-66089 Initial sync should do transaction table read with a later afterClusterTime
SERVER-66117 Disable qualify_shortname in mock libkrb5 configuration
WT-8250 Increase the maximum expected space available after compaction in test_wt7989_compact_checkpoint
WT-8450 Report stats in hs_cleanup_stress, don't validate them
WT-8481 Split cppsuite search near tests and update their logging levels
WT-8622 Read in last_ckpt_base_write_gen at start of recovery
WT-8860 Save the mongod logs as a test artifact in many-collection-test
WT-9019 Disable cyclomatic-complexity test on 5.0
WT-9029 Remove object_target_size option from WT_SESSION::create
WT-9044 Disable code coverage measurement on mongodb-5.0
WT-9054 Correctly configure split stress options in format.sh
WT-9096 Fix search near returning wrong key/value sometimes when key doesn't exist
5.0.8 Changelog
Sharding
SERVER-62690 Shard is shutting down before finishing draining in test
SERVER-65533 Operations with {readConcern:available} do not treat the collection as UNSHARDED
Write Operations
SERVER-65261 Deleting from a capped collection via collection scan reports number of documents deleted incorrectly
Build and Packaging
SERVER-44074 Platform Support: Add Enterprise RHEL 8 (zSeries)
Internals
SERVER-55173 Segmentation fault in WiredTigerSession::releaseCursor
SERVER-56003 ninja + icecream with changing compilers doesn't regen run-icecc.sh
SERVER-56731 Consider running server tests on newer SLES 12 service pack
SERVER-58506 Command to expose settability for Server Parameters
SERVER-60105 Inserts into timeseries collections are not observable from any opcounter
SERVER-60485 Tasks which run on the MigrationUtilExecutor must not wait for shutdown to complete
SERVER-61032 Convert all references to /opt/mongodbtoolchain/gdb to a versioned equivalent
SERVER-61663 Dynamically split concurrency_metrics and concurrency_replication_metrics into smaller tasks
SERVER-61879 Refreshes to recover migrations must never join ongoing refreshes
SERVER-62205 Include sanity check for max chunk size argument of [auto]splitVector
SERVER-62229 Fix invariant when applying index build entries while recoverFromOplogAsStandalone=true
SERVER-62299 Platform Support: Add support for Debian 11
SERVER-63010 Ensure that unpacking measurements doesn't overwrite pushedown addFields that are computed on meta data
SERVER-63387 StreamingCursor should return backup blocks in the order they were retrieved from the WiredTiger backup cursor
SERVER-63479 Correct $$SEARCH_META ban in sharded environments
SERVER-63531 commitQuorum incorrectly includes buildIndexes:false nodes and error message incorrectly says that only voting nodes are eligible
SERVER-63910 Generalize this error message related to the critical section
SERVER-64031 serverStatus should not take PBWM lock
SERVER-64184 Track usage of allowDiskUse:true in agg command
SERVER-64485 Use _id to determine the update type in extractUpdateType()
SERVER-64554 abortIndexBuild oplog entry has no effect when run with --recoverFromOplogAsStandalone
SERVER-64732 [v5.0] BSONColumn decompression of interleaved arrays
SERVER-64757 Improve error messages when scons fails to generate-ninja on Windows
SERVER-64983 Release Client lock before rolling back WT transaction in TransactionParticipant::_resetTransactionState
SERVER-65024 Multiple documents with the same _id value make reIndex invariant
SERVER-65032 Pin python package BaseResponse for ocsp suite
SERVER-65182 Fix split_horizon_hostname_startup.js to use an assert.soon when getting the replsetconfig
SERVER-65200 Package task not run as part of task group
SERVER-65211 Use expansion to get binaries from the current branch
SERVER-65284 Create collection coordinator should always perform cleanup on subsequent execution
SERVER-65430 Disable capped_deletes.js on ephemeralForTest
SERVER-65718 Fix mypy error
WT-7662 Format timed out with prepare-conflict
WT-8260 Create a Python suite test to validate new EVENT_HANDLER JSON format
WT-8708 Fix timestamp usage error in test/checkpoint
WT-8924 Don't check against on disk time window if there is an insert list when checking for conflicts in row-store
5.0.7 Changelog
Sharding
SERVER-60109 Ensure vector clock is recovered on step-up
SERVER-61249 refine_collection_shard_key_basic.js relies on a best-effort refresh that might not happen in case of failover
SERVER-61444 Resharding uses of bumpCollectionVersionAndChangeMetadataInTxn are not idempotent
SERVER-61755 Migration recovery should handle refined shard key
SERVER-62072 _configsvrReshardCollection may return without having waited for unsetting "reshardingFields" to replicate to majority
SERVER-62521 Distributed locks might not be released on definite error when using a DDL coordinator
SERVER-62761 [v5.0] receiveChunkWaitForRangeDeleterTimeoutMS is being passed on 4.4 binaries
SERVER-62906 Add a check in the createCollection/shardCollection path verifying the collection name length
SERVER-62907 Vector clock components must survive CSRS non-rolling restart
SERVER-63722 Rename collection participants get stuck upon errors different from stepdown/shutdown
SERVER-63742 Default topology time in shard can lead to infinite refresh in shard registry
SERVER-64517 RecoverableCriticalSection is not properly recovered on startup
SERVER-64580 Step downs while sharding a collection in mixed binaries shards might crash the old binary
Replication
SERVER-54374 Race between signalOplogWaiters and StorageEngine::loadCatalog
Query
SERVER-40691 $nin:[[],...] queries are not indexed
Operations
SERVER-21070 Add option to gather collection stats
Internals
SERVER-51456 Database Profiler outputs incorrect value of property "keysDeleted" for a remove operation when a write conflict occurs
SERVER-53993 Attach client strand before releasing the opCtx in AsyncCommandExecution tests
SERVER-56300 Add append range functionality to BSON obj and array builders
SERVER-56558 Robustify validate_db_metadata_command.js test
SERVER-56931 instrument ASIO set_option failures better
SERVER-57662 Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache
SERVER-58069 ASSERT_THAT matcher framework for unit tests
SERVER-58152 Create Feature flag for Remove Faulty Mongos From Cluster Topology
SERVER-58310 ThreadPoolTaskExecutor is memory unsafe when task cancellation occurs around the same time an exhaust network response is received
SERVER-58499 Add a new error code LoadBalancerSupportMismatch
SERVER-59220 Connectivity probes in ocsp_server_refresh.js should use fresh shells
SERVER-59223 Improve ecs scp robustness
SERVER-59290 Re-evaluate sync source after incrementing config version
SERVER-59356 Create dummy FaultManager singleton, FaultStatus enum and dummy unit test
SERVER-59357 Create dummy Fault class and dummy unit test for it
SERVER-59358 Create FaultFacet interface, mock implementation and unit test running mock that imitates a failure
SERVER-59360 Create HealthObserver interface, mock implementation and unit test invoking the periodic check with mocked failure
SERVER-59361 Implement periodic health check thread pool
SERVER-59362 Setup Fault Manager State Machine
SERVER-59364 Should move to the OK state after performing a successful round of health checks when in the StartupCheck state
SERVER-59365 Should not transition to OK state if initial health checks are not completed successfully
SERVER-59366 Progress monitor for periodic health check
SERVER-59367 Should create in-memory Fault instance when entering the TransientFault state
SERVER-59370 Should Transition to ActiveFault state when in the TransientFault state for kActiveFaultDuration
SERVER-59382 Enforce non-critical facets not entering ActiveFault state
SERVER-59390 Should provide the ability to perform periodic health checks against config server
SERVER-59397 implement randomization for health check periods
SERVER-59496 Fault class should be a container of active fault facets
SERVER-59522 HealthCheckStatus should track fault status and lifetime
SERVER-59567 Periodic check should invoke observers, simulate HealthObserver Mock failure
SERVER-59608 Coverity analysis defect 120502: Parse warning
SERVER-59912 Initial no-op scaffolding of the Ldap health checker
SERVER-60079 Common health observer code to incorporate generic patterns from Ldap observer
SERVER-60316 FaultManager should start with periodic checks disabled
SERVER-60412 Host memory limit check does not honor cgroups v2
SERVER-60587 Implement FaultFacet
SERVER-61016 Swallow connection reset-related errors received during ASIOSession creation on outbound connection.
SERVER-61095 Improve transport_layer_asio_test.cpp
SERVER-61104 Robustify find_and_modify_invalid_query_params.js
SERVER-61220 Integration test for Progress monitor
SERVER-61315 Ldap health check executor should support aborted tasks
SERVER-61368 FaultManager test suite should use real thread pool
SERVER-61438 Fix race in health_observer_test.cpp
SERVER-61490 transport_layer_test: asio connect race
SERVER-61592 Querying with ms precision does not return expected results (TS collection)
SERVER-61662 SCons configure checks should always run with verbosity
SERVER-61706 make sure that the new config has reached all nodes in cluster_x509_rotate
SERVER-61769 Attempting to run an aggregation with $out or $merge in a transaction on a sharded cluster leaves idle cursors open
SERVER-61871 use tassert for state machine programmer errors
SERVER-61872 Fix thread pool starvation in FaultManager
SERVER-61873 LDAP health observer runtime params
SERVER-61914 add fault facet details to FaultImpl::toBSON
SERVER-61921 Link failure in noSSL mode in FaultManager
SERVER-61956 fix data race when accessing the state machine's state
SERVER-61977 Concurrent rollback and stepUp can cause a node to fetch from a timestamp before lastApplied once it has stepped down.
SERVER-62017 Enable all feature flags by default in the sys-perf all feature flags variant
SERVER-62084 Serializer for FaultFacetType is broken
SERVER-62085 Use more bits for hashedMultikeyMetadataPaths in validation
SERVER-62096 /proc/<id>/smaps is not available
SERVER-62098 Guard healthCheckContexts with mutex in fault_manager.cpp
SERVER-62192 Handle feature flag disabled for implicit sharding accessed collection
SERVER-62242 $indexOfArray does not work with duplicate values in array
SERVER-62285 validate cachedir add push failure debug messages