[SERVER-66070] MigrationSourceManager::getMigrationStatusReport must expect optional max bound Created: 29/Apr/22  Updated: 29/Oct/23  Resolved: 02/May/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc4, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding EMEA 2022-05-02
Participants:
Linked BF Score: 0

 Description   

With the moveRange introduction, the MigrationSourceManager is calculating and initializing the max bound after its constructor is invoked.
It then can happen that getMigrationStatusReport gets called before the attribute is instantiated since the server status command is periodically invoked.

Objectives of the ticket:

  • Change this line to _args.getMax().value_or(BSONObj())
  • Put the following TODO on the line right before in order to not incur in the same problem when making min optional: // TODO SERVER-64926 do not assume min always present


 Comments   
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-66070 MigrationSourceManager::getMigrationStatusReport must expect optional max bound
Branch: v6.0
https://github.com/mongodb/mongo/commit/683a68904e92bf82cb30e4e9714854d612f4c9c6

Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-66070 MigrationSourceManager::getMigrationStatusReport must expect optional max bound
Branch: master
https://github.com/mongodb/mongo/commit/fd60ec52d5a9c3354fd851717d087c3fa11bd74e

Generated at Thu Feb 08 06:04:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.