Operational Defect Database

BugZero found this defect 40 days ago.

MongoDB | 2636318

Test wrongly assumes multi writes outside of transactions are atomic

Last update date:

4/9/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

timeseries_multiple_mongos.js is currently checking how many times a multi write without shard key is being executed in the cluster (for example here). This is not correct, multi writes are not atomic, meaning, some interleaving might cause them to be executed more than once, in this case, a hedge read to a secondary might cause the non primary db shard to refresh the metadata, accepting the update which will be sent with ShardVersion::IGNORED. We should remove all writes without shard key from the test, that is, all updates and deletes with q: {}.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...