[SERVER-71277] Not assume that '_collInfo' is initialized when we hit an error at '_runImpl' from 'collmod_coordinator.cpp' Created: 11/Nov/22  Updated: 29/Oct/23  Resolved: 05/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pol Pinol Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-11-28, Sharding EMEA 2022-12-12
Participants:
Linked BF Score: 120

 Description   

We should not assume that 'collInfo' is initialized when we hit 'onError' at method 'runImpl' from 'collmod_coordinator.cpp'.

To fix this bug I propose to one of the two solutions:

  • Check if 'collInfo' is initialized before entering to 'resumeMigrations' inside 'onError'.
  • Get the 'nsForTargeting' locally:
    • nsForTargeting = info.timeSeriesOptions ? originalNss().makeTimeseriesBucketsNamespace() : originalNss()


 Comments   
Comment by Githook User [ 24/Nov/22 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-71277 Not assume that '_collInfo' is initialized when we hit an error at '_runImpl' from 'collmod_coordinator.cpp'
Branch: master
https://github.com/mongodb/mongo/commit/99c3c2646023945d95df954078a334a80b413077

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