[SERVER-26490] Whitelist usePowerOf2Sizes option to create command Created: 05/Oct/16  Updated: 05/Apr/17  Resolved: 06/Oct/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-25459 Create command should reject unknown ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2016-10-10
Participants:

 Description   

Old versions of the Java driver send the invalid option "usePowerOf2Sizes" to the "create" command, when users request to create a collection with the "power of 2" storage allocation strategy. The correct name of the option to use is "flags", per the create command reference.

Original description:

Drivers can still pass the usePowerOf2Sizes option to the create command, so the server should not reject the option, even though it is no longer meaningful.



 Comments   
Comment by Tess Avitabile (Inactive) [ 06/Oct/16 ]

usePowerOf2Sizes was never a top-level option to create. Instead, it was a flag. So it is an error for drivers to pass it as a top-level option.

Comment by Githook User [ 06/Oct/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: Revert "SERVER-26490 Whitelist usePowerOf2Sizes option to create command"

This reverts commit 3ef6f3040b6295e12d96347f81674c2fc76bbdef.
Branch: master
https://github.com/mongodb/mongo/commit/fcbbeff941d17beb1834b8f4de465ac766de941d

Comment by J Rassi [ 06/Oct/16 ]

I'm re-opening this ticket for consideration of reverting the above commit. Per the updated description, the actual issue here is a bug in the Java driver, not a bug in the server.

Comment by Githook User [ 06/Oct/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: SERVER-26490 Whitelist usePowerOf2Sizes option to create command
Branch: master
https://github.com/mongodb/mongo/commit/3ef6f3040b6295e12d96347f81674c2fc76bbdef

Generated at Thu Feb 08 04:12:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.