Operational Defect Database

BugZero found this defect 19 days ago.

MongoDB | 2657880

Wrap multikey metadata maintenance inside a side transaction for wildcard indexes

Last update date:

4/30/2024

Affected products:

MongoDB Server

Affected releases:

4.2.0

4.4.0

5.0.0

6.0.0

7.0.0

8.0.0-rc0

Fixed releases:

No fixed releases provided.

Description:

Info

SERVER-41766 introduced a side transaction to commit multikey metadata changes immediately and independently of the parent multi-document transaction to avoid a corner case resulting in an infinite prepare conflict. However, wildcard indexes maintain the multikey metadata paths inside the index table itself, which is different from other indexes which maintain them inside the catalog table, and the code neglects to wrap wildcard multikey paths maintenance inside the side transaction, making wildcard multikey setting vulnerable to infinite prepare conflicts.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...