Operational Defect Database

BugZero found this defect 117 days ago.

MongoDB | 2553734

Undo any update on ScopedSetShardRole construction failure

Last update date:

3/15/2024

Affected products:

MongoDB Server

Affected releases:

6.0.0

7.0.0

7.3.0-rc0

7.2.0

Fixed releases:

8.0.0-rc0

7.0.8

Description:

Info

The ScopedSetShardRole aim is to set a shardVersion and dbVersion into the OperatingShardingState during the object lifespan. However, if the construction of the object fails, the destructor won't be called so we could end up having an inconsistent OperatingShardingState. This ticket aims to make sure that any change done on ScopedSetShardRole constructor will be reverted in case of an error.

Top User Comments

xgen-internal-githook commented on Fri, 15 Mar 2024 15:05:51 +0000: Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'} Message: SERVER-85580 Undo any update on ScopedSetShardRole construction failure GitOrigin-RevId: b1dbdd6aead453c1093fd76bc5919edda4657dcc Branch: v6.0 https://github.com/mongodb/mongo/commit/df80394ac4bb92f3fa0e01a6d8941fcc3b37e5d5 xgen-internal-githook commented on Fri, 15 Mar 2024 14:12:59 +0000: Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'} Message: SERVER-85580 Undo any update on ScopedSetShardRole construction failure GitOrigin-RevId: d6d86282376456999b648b73ba2f778a2ea6b389 Branch: v7.0 https://github.com/mongodb/mongo/commit/1dc77a795f5d6bd0f4602e8a33f884ddee578214 xgen-internal-githook commented on Thu, 1 Feb 2024 12:47:27 +0000: Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'} Message: SERVER-85580 Undo any update on ScopedSetShardRole construction failure (#18322) GitOrigin-RevId: dbc8b1a147093fd9e40bec7350670c2d1f562ce0 Branch: master https://github.com/mongodb/mongo/commit/828308709ec3270ae6a265f1892dac9515aeb90a JIRAUSER1268536 commented on Tue, 23 Jan 2024 08:57:06 +0000: Is caused by SERVER-64057, in particular fb608f9

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...