Operational Defect Database

BugZero found this defect 75 days ago.

MongoDB | 2598967

Synchronize reads on clients' service field

Last update date:

3/8/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

Description:

Info

As of recent development in a few tickets, Clients can now have their Service fields temporarily modified to reflect a change in role. This means that reads from a Client's service field (i.e., using getService()) need to be synchronized with writes to it. BF-32086 is the result of such a read being unsynchronized (in the case of that BF, from Service::LockedClientsCursor which iterates over the Clients of a ServiceContext and pulls out the ones that match a particular Service). Investigate the code base for other such unsynchronized reads and resolve them.

Top User Comments

xgen-internal-githook commented on Fri, 8 Mar 2024 18:54:17 +0000: Author: {'name': 'James Bronsted', 'email': '32047428+jpbronsted@users.noreply.github.com', 'username': 'jpbronsted'} Message: SERVER-87509 change Service::LockedClientsCursor API to return LockedClients (#19722) GitOrigin-RevId: cc781bac7018448937d526d73aafc59b0d340dde Branch: master https://github.com/mongodb/mongo/commit/f621c2b479eb85439d64880c56e346b2938286f9

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...