Operational Defect Database

BugZero found this defect 79 days ago.

MongoDB | 2595376

Future continuations must capture vector clock as shared pointer

Last update date:

3/15/2024

Affected products:

MongoDB Server

Affected releases:

5.0.0

6.0.0

7.0.0

7.3.0-rc0

Fixed releases:

No fixed releases provided.

Description:

Info

All vector clock related future chains capture a non-shared reference to this (e.g. here or here). This can be problematic when a continuation executes during shutdown because the vector clock may be cleared up before a thread tries to access it. The solution will be to always pass "this, self = shared_from_this()" to continuations.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...