Operational Defect Database

BugZero found this defect 2414 days ago.

MongoDB | 405713

[SERVER-30213] createIndexes can implicitly create collections on shards without propagating the collection options

Last update date:

12/6/2022

Affected products:

MongoDB Server

Affected releases:

2.0.9

2.2.7

2.4.14

2.6.12

3.0.15

3.2.15

3.4.6

Fixed releases:

No fixed releases provided.

Description:

Info

On mongos, createIndexes is broadcast to all shards, rather than only shards that own data for the collection. So, createIndexes can implicitly create collections on shards that don't own data for the collection. When this happens, the collection is implicitly created without the right collection options (collation, compression, etc). This is a beginning-of-time bug: r3.4.6: https://github.com/mongodb/mongo/blob/r3.4.6/src/mongo/s/commands/commands_public.cpp#L228-L229 r3.2.15: https://github.com/mongodb/mongo/blob/r3.2.15/src/mongo/s/commands/commands_public.cpp#L209 v3.0.11: https://github.com/mongodb/mongo/blob/v3.0.11/src/mongo/s/commands_public.cpp#L361-L363 v2.6: https://github.com/mongodb/mongo/blob/v2.6/src/mongo/s/commands_public.cpp#L284 v2.4: https://github.com/mongodb/mongo/blob/v2.4/src/mongo/s/commands_public.cpp#L184 v2.2: https://github.com/mongodb/mongo/blob/v2.2/src/mongo/s/commands_public.cpp#L185 v2.0: https://github.com/mongodb/mongo/blob/v2.0/s/commands_public.cpp#L163

Top User Comments

max.hirschhorn@10gen.com commented on Fri, 21 Jul 2017 11:38:30 +0000: I think this ticket is a duplicate of the user-reported issue in SERVER-20659.

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...