Release Notes for MongoDB 6.3MongoDB 6.3发布说明
On this page
MongoDB 6.3.1 is a rapid release and is only supported for MongoDB Atlas. MongoDB 6.3.1是一个快速版本,仅支持MongoDB Atlas。MongoDB 6.3.1 is not supported for use on-premises. MongoDB 6.3.1不支持在本地使用。For more information, see MongoDB Versioning.有关更多信息,请参阅MongoDB版本控制。
To install the latest MongoDB version supported for on-premises use, MongoDB 6.0, see the MongoDB 6.0 installation instructions.要安装支持本地使用的最新MongoDB版本MongoDB 6.0,请参阅MongoDB 6.0安装说明。
Patch Releases修补程序发布
6.3.2 - June 29, 2023
Issues fixed:已修复的问题:
-
SERVER-67105
$in queries do not use clustered index$in查询不使用聚集索引 -
SERVER-69952
Filtering on dates outside of the 32 bit epoch range returns wrong results对32位epoch范围之外的日期进行筛选会返回错误的结果 -
SERVER-74380
Router role retry loop should allow namespaces different from the one it was created for路由器角色重试循环应允许与为其创建的命名空间不同的命名空间 -
SERVER-76550
Balancer is unable to drain shards with big chunks平衡器无法排出大块分片 -
SERVER-77018
Deadlock between dbStats and 2 index buildsdbStats和2个索引生成之间的死锁
6.3.1 - May 3, 2023
Issues fixed:
-
SERVER-71636
Explain executionStats does not work for $lookup on sharded collection解释executionStats不适用于分片集合上的$lookup -
SERVER-73229
Logical sessions cache refresh ignores write errors from updating session document, leading to cursors being killed early逻辑会话缓存刷新会忽略更新会话文档时的写入错误,导致游标提前终止 -
SERVER-73482
$natural hint overrides sort on clustered collections$natural提示覆盖聚集集合上的排序 -
SERVER-74131
Multiplanning together with subplanning causes server crash in mapReduce queries多计划和子计划一起导致mapReduce查询中的服务器崩溃 -
SERVER-75277
TTL deleter attributes resource metrics across multiple databasesTTL deleter属性跨多个数据库的资源度量
Aggregation聚合
New Aggregation Operators新聚合运算符
MongoDB 6.3 introduces the following aggregation operators:MongoDB 6.3引入了以下聚合运算符:
$bitAnd | and operation on an array of int or long values.int值或long值数组执行按位and运算的结果。 |
$bitNot | not operation on a single argument or an array that contains a single int or long value.int或long值的数组执行按位not运算的结果。 |
$bitOr | or operation on an array of int or long values.int或long值数组执行按位or运算的结果。 |
$bitXor | xor (exclusive or) operation on an array of int and long values.int和long值数组执行逐位xor(异或)运算的结果。 |
General Changes一般变更
serverStatus Metrics度量
Starting in MongoDB 6.3, the 从MongoDB 6.3开始,serverStatus command and the db.serverStatus() method have these output changes:serverStatus命令和db.serverStatus()方法的输出更改如下:
connPoolStats Metrics度量
Starting in MongoDB 6.3, the 从MongoDB 6.3开始,connPoolStats command has these output changes:connPoolStats命令有以下输出更改:
connPoolStats.acquisitionWaitTimes document.connPoolStats.acquisitionWaitTimes文档。 |
Session Workflow Log Message会话工作流日志消息
Starting in MongoDB 6.3, a message is added to the log if the time to send an operation response exceeds the slowms threshold option. 从MongoDB 6.3开始,如果发送操作响应的时间超过slowms阈值选项,则会向日志中添加一条消息。For details, see Session Workflow Log Message.有关详细信息,请参阅会话工作流日志消息。
explain Output Includes Fields for Spilled Data File Sizeexplain输出包括溢出数据文件大小的字段
explain Output Includes Fields for Spilled Data File SizeStarting in MongoDB 6.3, the 从MongoDB 6.3开始,explain output for the $group stage includes new metrics on spill data when using the classic execution engine:$group阶段的explain输出包括使用经典执行引擎时溢出数据的新指标:
-
spillFileSizeBytes, the size of the spill file written to disk in the,$groupstage$group阶段中写入磁盘的溢出文件的大小 -
numBytesSpilledEstimate, estimate of the number of bytes written to disk in the,压缩前$groupstage before compression$group阶段中写入磁盘的字节数的估计值
For details, see 有关详细信息,请参阅$sort and $group Stages.$sort和$group阶段。
Connection Acquisition To Wire Log Message连接采集到接线日志消息
Starting in MongoDB 6.3, a message is added to the log if the time that an operation waited between acquisition of a server connection and writing the bytes to send to the server over the network exceeds 1 millisecond. 从MongoDB 6.3开始,如果操作在获取服务器连接和写入要通过网络发送到服务器的字节之间等待的时间超过1毫秒,则会在日志中添加一条消息。For details, see Connection Acquisition To Wire Log Message.有关详细信息,请参阅连接采集到接线日志消息。
Server Parameters服务器参数
Starting in MongoDB 6.3, these server parameters were added:从MongoDB 6.3开始,添加了以下服务器参数:
-
slowConnectionThresholdMillissets the time limit to log the establishment of slow server connections.设置记录慢速服务器连接建立的时间限制。 -
chunkMigrationConcurrencysets the number of threads on the source shard and the receiving shard for migrating chunks.设置源分片和接收分片上用于迁移块的线程数。 -
planCacheSizesets the size of the plan cache for the slot-based query execution engine.为基于槽的查询执行引擎设置计划缓存的大小。
Time Series Collection Custom Bucketing Parameters时间序列集合自定义桶参数
MongoDB 6.3 adds the following time series parameters:MongoDB 6.3添加了以下时间序列参数:
-
bucketMaxSpanSecondssets the maximum time span between measurements in a bucket.设置bucket中测量之间的最大时间跨度。 -
bucketRoundingSecondssets the time interval that determines the starting timestamp for a new bucket.设置时间间隔,用于确定新存储桶的开始时间戳。
compact Command Support for Time Series Collections对时间序列集合的紧凑型命令支持
Starting in MongoDB 6.3, the 从MongoDB 6.3开始,compact command works with time series collections.compact命令可以处理时间序列集合。
Report an Issue报告问题
To report an issue, see https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports for instructions on how to file a JIRA ticket for the MongoDB server or one of the related projects.要报告问题,请参阅https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports有关如何为MongoDB服务器或某个相关项目提交JIRA票证的说明。