Operational Defect Database

BugZero found this defect 36 days ago.

MongoDB | 2641517

Randomize databases in Balancer MoveUnshardedPolicy

Last update date:

4/13/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

The MoveUnshardedPolicy is used only in our testing infrastructure and should perform random moveCollection over all the existing collections. In order to make the selection of the collection random, we need to: select a random database select a random collection in the database Currently, we only randomize the selection of the collection, but not the one of the databases. As part of this work we should also update jstests/sharding/balancer_should_return_random_migrations_failpoint.js test to make sure that in the presence of multiple databases the balancer will eventually move all collections.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...