[SERVER-32823] Use the WiredTiger metadata create URI for metadata cursors Created: 22/Jan/18  Updated: 30/Oct/23  Resolved: 26/Feb/18

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

Type: Bug Priority: Major - P3
Reporter: Alexander Gorrod Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage 2018-02-12, Storage 2018-02-26
Participants:
Linked BF Score: 0

 Description   

The MongoDB code is querying the WiredTiger metadata to retrieve the data used at create time. It is passing the wrong URI when opening a metadata cursor. It uses a URI of metadata: when it should use metadata:create

The result of the incorrect URI is that occasionally attempting to create a new collection using the collstats.wiredTiger.creationString from another collection fails reporting an invalid string. This was found via automated testing using the wt_roudntrip_creation_string test case.



 Comments   
Comment by Githook User [ 26/Feb/18 ]

Author:

{'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'}

Message: SERVER-32823 Use WT metadata create URI for metadata cursors
Branch: master
https://github.com/mongodb/mongo/commit/17ae3d8ac9a6aa8d3664cebe791692781f3f9ca4

Comment by Louis Williams [ 08/Feb/18 ]

This code path only looks at the keys of the metadata cursor, and never the values. It is not actually used to display the collStats.wiredTiger.creationString field, so this ticket is no longer necessary as it does not solve the linked BF ticket.

Comment by Louis Williams [ 07/Feb/18 ]

Reassigning because it seems that WT occasionally returns checkpoint info in the metadata:create URI, and this fix does not solve that specific problem. See this comment.

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