[SERVER-47760] Avoid concurrent accesses to InlineCountingExecutor Created: 24/Apr/20  Updated: 29/Oct/23  Resolved: 30/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc4, 4.7.0

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

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-47772 Do not use InlineCountingExecutor in ... Closed
Related
related to SERVER-49371 Introduce the InlineRecursiveCounting... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Service arch 2020-05-04
Participants:
Linked BF Score: 0

 Description   

Scheduling tasks on InlineCountingExecutor is not thread-safe, thus concurrent scheduling of tasks results in undefined behavior (and could potentially cause segmentation faults).

We should make sure that instances of InlineCountingExecutor are not shared between multiple threads (see example here).



 Comments   
Comment by Githook User [ 30/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-47760 Avoid concurrent accesses to InlineCountingExecutor

(cherry picked from commit 2b2ca9bdea156620c93066560f14a81395332c5f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/b94e56ebd469e8565ddc6700b5ee7ac6d10b64c3

Comment by Githook User [ 30/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-47760 Avoid concurrent accesses to InlineCountingExecutor
Branch: master
https://github.com/mongodb/mongo/commit/2b2ca9bdea156620c93066560f14a81395332c5f

Generated at Thu Feb 08 05:15:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.