[SERVER-19083] WiredTiger creationString in collstats contains non-collection level options Created: 23/Jun/15 Updated: 05/Feb/16 Resolved: 20/Jul/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | WiredTiger |
| Affects Version/s: | 3.0.4 |
| Fix Version/s: | 3.1.6 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Cory Mintz | Assignee: | Max Hirschhorn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: |
|
||||||||||||
| Sprint: | Quint Iteration 6 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
I would like to be able to create a collection with the same wiredTiger collection options as an existing collection. If I take the wiredTiger.creationString field from the collstats command to pass to the createCollection command it fails with:
and write the following to the MongoDB log:
It seems that the collstats output contains options that are not valid at the collection level. |
| Comments |
| Comment by Githook User [ 20/Jul/15 ] |
|
Author: {u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}Message: Ensures that the creation strings returned by the "collStats" command |
| Comment by Githook User [ 13/Jul/15 ] |
|
Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}Message: Note the connection to |
| Comment by Michael Cahill (Inactive) [ 25/Jun/15 ] |
|
There is some tension here from inside WiredTiger: the string that is returned in the statistics is the complete metadata for the table, but all MongoDB wants is a value that can be passed to WT_SESSION::create. The cleanest way to do this would be to extend the metadata cursor interface that MongoDB is using to query this information. We could actually use the same interface in WiredTiger itself to simplify the wt dump utility, which also has to walk and combine metadata entries. Let me know if this makes sense and I will get the WiredTiger side of this done. |