Docs HomeMongoDB Manual

Release Notes for MongoDB 6.3MongoDB 6.3发布说明

Important

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个索引生成之间的死锁

  • All JIRA issues closed in 6.3.2

  • 6.3.2 Changelog

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属性跨多个数据库的资源度量

  • All JIRA issues closed in 6.3.1

  • 6.3.1 Changelog

Aggregation聚合

New Aggregation Operators新聚合运算符

MongoDB 6.3 introduces the following aggregation operators:MongoDB 6.3引入了以下聚合运算符:

Operator运算符Description描述
$bitAndReturns the result of a bitwise and operation on an array of int or long values.返回对int值或long值数组执行按位and运算的结果。
$bitNotReturns the result of a bitwise not operation on a single argument or an array that contains a single int or long value.返回对单个参数或包含单个intlong值的数组执行按位not运算的结果。
$bitOrReturns the result of a bitwise or operation on an array of int or long values.返回对intlong值数组执行按位or运算的结果。
$bitXorReturns the result of a bitwise xor (exclusive or) operation on an array of int and long values.返回对intlong值数组执行逐位xor(异或)运算的结果。

General Changes一般变更

serverStatus Metrics度量

Starting in MongoDB 6.3, the serverStatus command and the db.serverStatus() method have these output changes:从MongoDB 6.3开始,serverStatus命令和db.serverStatus()方法的输出更改如下:

Document文档Field(s)字段
New network.listenerProcessingTime document.新的network.listenerProcessingTime文档。network.listenerProcessingTime.durationMicros
Addition to connections document.添加到connections文档。connections.rejected
New metrics.network document.新的metrics.network文档。metrics.network.totalEgressConnectionEstablishmentTimeMillis metrics.network.totalIngressTLSConnections metrics.network.totalIngressTLSHandshakeTimeMillis metrics.network.totalTimeForEgressConnectionAcquiredToWireMicros metrics.network.totalTimeToFirstNonAuthCommandMillis
Additions to metrics.operation document.添加到metrics.operation文档。metrics.operation.numConnectionNetworkTimeouts metrics.operation.totalTimeWaitingBeforeConnectionTimeoutMillis
Addition to shardingStatistics document.shardingStatistics.chunkMigrationConcurrency

connPoolStats Metrics度量

Starting in MongoDB 6.3, the connPoolStats command has these output changes:从MongoDB 6.3开始,connPoolStats命令有以下输出更改:

Document文档Field(s)字段
New connPoolStats.acquisitionWaitTimes document.新的connPoolStats.acquisitionWaitTimes文档。Time ranges with the number of connection requests in each range. 时间范围,每个范围中的连接请求数。Total number of connection requests for all time ranges.所有时间范围的连接请求总数。

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输出包括溢出数据文件大小的字段

Starting in MongoDB 6.3, the explain output for the $group stage includes new metrics on spill data when using the classic execution engine:从MongoDB 6.3开始,$group阶段的explain输出包括使用经典执行引擎时溢出数据的新指标:

  • spillFileSizeBytes, the size of the spill file written to disk in the $group stage$group阶段中写入磁盘的溢出文件的大小

  • numBytesSpilledEstimate, estimate of the number of bytes written to disk in the $group stage 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开始,添加了以下服务器参数:

Time Series Collection Custom Bucketing Parameters时间序列集合自定义桶参数

MongoDB 6.3 adds the following time series parameters:MongoDB 6.3添加了以下时间序列参数

  • bucketMaxSpanSeconds sets the maximum time span between measurements in a bucket.设置bucket中测量之间的最大时间跨度。

  • bucketRoundingSeconds sets 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 compact command works with time series collections.从MongoDB 6.3开始,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票证的说明。