[SERVER-71568] Fix race condition related to ChangeStreamOptions access Created: 23/Nov/22 Updated: 29/Oct/23 Resolved: 25/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.4, 6.2.0-rc2, 6.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mindaugas Malinauskas | Assignee: | Mindaugas Malinauskas |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.2, v6.1, v6.0
|
||||
| Sprint: | QE 2022-11-28 | ||||
| Participants: | |||||
| Description |
|
ChangeStreamOptionsManager has a race condition prone interface element - const ChangeStreamOptions& ChangeStreamOptionsManager::getOptions(OperationContext* opCtx) which returns a reference to internal data structure. This makes any read access of the ChangeStreamOptions to introduce a race condition. |
| Comments |
| Comment by Githook User [ 30/Nov/22 ] |
|
Author: {'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}Message: (cherry picked from commit 92d8c8e3aaf9b4914db3b9fd4a10ef3bb9595f07) |
| Comment by Githook User [ 30/Nov/22 ] |
|
Author: {'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}Message: (cherry picked from commit 92d8c8e3aaf9b4914db3b9fd4a10ef3bb9595f07) |
| Comment by Githook User [ 24/Nov/22 ] |
|
Author: {'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}Message: |
| Comment by Mindaugas Malinauskas [ 24/Nov/22 ] |
|
alexander.neben@mongodb.com No, this seems to be not related to neither BF-26620 nor BF-26636 based on traces and tests failed. |