Release Notes for MongoDB 5.3

On this page本页内容

Warning警告
MongoDB 5.3 Release CandidatesMongoDB 5.3发布候选版本

MongoDB 5.3 release candidates are not yet available. MongoDB 5.3的候选版本尚未发布。This version of the manual is for an upcoming release and is currently a work in progress.此版本的手册即将发布,目前正在进行中。

Aggregation聚合

New Aggregation Stages新的聚合阶段

MongoDB 5.3 introduces the following aggregation stages:MongoDB 5.3引入了以下聚合阶段:

StageDescription描述
$fill

Populates null and missing field values within documents.在文档中填充null的和缺少的字段值。

New Aggregation Operators新的聚合运算符

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

Operator运算符Description描述
$linearFill

Fills null and missing fields in a window using linear interpolation based on surrounding field values.使用基于周围字段值的线性插值填充窗口中的null字段和缺失字段。

setWindowFields Stage with Transactions and snapshot Read ConcernsetWindowFields阶段配合事务以及snapshot读取关注点

Starting in MongoDB 5.3, you can use the $setWindowFields stage with transactions and the "snapshot" read concern.从MongoDB 5.3开始,您可以在事务中使用$setWindowFields阶段和"snapshot"读取关注。

General Improvements总体改进

serverStatus Output Change输出变化

Starting in MongoDB 5.3, serverStatus includes connections.loadBalanced which reports the number of incoming connections received through a load balancer.从MongoDB 5.3开始,serverStatus包括connections.loadBalanced,它报告通过负载均衡器接收的传入连接数。

getParameter can Report When Parameters can be Set可以报告何时可以设置参数

Starting in MongoDB 5.3, getParameter can report:从MongoDB 5.3开始,getParameter可以报告:

  • whether a parameter can be set at startup是否可以在启动时设置参数
  • whether a parameter can be set during runtime是否可以在运行时设置参数

You can use the getParameter command to report parameter details by passing { showDetails: true }. 可以使用getParameter命令通过传递{showDetails:true}来报告参数详细信息You can use getParameter to report details on all parameters by passing { showDetails: true, allParameters: true }.通过传递{ showDetails: true, allParameters: true },可以使用getParameter报告所有参数的详细信息

Specify a Timeout for Step Up and Step Down Operations指定递增和递减操作的超时

Starting in MongoDB 5.3, the fassertOnLockTimeoutForStepUpDown parameter allows a server that receives a request to step up or down to terminate if it is unable to comply within the timeout.从MongoDB 5.3开始,fassertOnLockTimeoutForStepUpDown参数允许接收请求的服务器在超时时间内无法遵守时终止。

Security安全

Starting in MongoDB 5.3 Enterprise, you can use an external Key Management Interoperability Protocol (KMIP) server to securely manage the keys for encrypting the MongoDB audit log.从MongoDB 5.3 Enterprise开始,您可以使用外部密钥管理互操作性协议(KMIP)服务器来安全地管理加密MongoDB审核日志的密钥。

KMIP Key ActivationKMIP密钥激活

Starting in MongoDB 5.3, security.kmip.activateKeys activates all newly created KMIP keys upon creation and then periodically checks that keys are in an active state.从MongoDB 5.3开始,security.kmip.activateKeys在创建时激活所有新创建的KMIP密钥,然后定期检查密钥是否处于活动状态。

Polling for Active State Keys轮询活动状态密钥

Starting in MongoDB 5.3, security.kmip.keyStatePollingSeconds sets the polling interval in seconds at which mongod polls the KMIP server for active keys.从MongoDB 5.3开始,security.kmip.keyStatePollingSeconds s设置mongod轮询KMIP服务器的活动密钥的轮询间隔(以秒为单位)。

Sharding分片

Starting in MongoDB 5.3, you can use the new chunkDefragmentationThrottlingMS parameter to limit the rate of split and merge commands run by the balancer when the chunks in a sharded collection are defragmented.从MongoDB 5.3开始,可以使用新的chunkDefragmentationThrottlingMS参数来限制分片化集合中的进行碎片整理时均衡器运行的拆分和合并命令的速率。

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票证的说明。

←  Release NotesCompatibility Changes in MongoDB 5.3 →