[SERVER-16111] Store & display catalog creation metadata for WiredTiger collections & indexes Created: 12/Nov/14  Updated: 06/Jan/15  Resolved: 23/Dec/14

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage
Affects Version/s: None
Fix Version/s: 2.8.0-rc4

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-4610 Document that collStats and listColle... Closed
Duplicate
is duplicated by SERVER-16242 Store catalog creation catalog metada... Closed
Related
related to SERVER-16233 add support for storage options to cr... Closed
is related to SERVER-16367 Add versioning info to WiredTiger Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently, it is possible to pass special wiredtiger settings through the create command. However, there is currently no way to figure out what are the special settings passed after the fact.

It is a requirement that all (both explicitly set and the implicitly set) statistics are accessible from db.collection.stats() and db.runCommand('listCollections')



 Comments   
Comment by Githook User [ 23/Dec/14 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-16111 display creation details for collections and indexes
Branch: master
https://github.com/mongodb/mongo/commit/8a88494748dce0aa09471f1b66e409cf6c2d7ff2

Comment by Eric Milkie [ 22/Dec/14 ]

Partial collection stats output looks like this (for an index named "a_1" on collection "foo" in db "test"):

"test.foo.$a_1" : {
			"metadata" : {
				"formatVersion" : 1,
				"infoObj" : "{ \"v\" : 1, \"key\" : { \"a\" : 1 }, \"name\" : \"a_1\", \"ns\" : \"test.foo\" }"
			},
			"creationString" : "allocation_size=4KB,app_metadata=(formatVersion=1,infoObj={ \"v\" : 1, \"key\" : { \"a\" : 1 }, \"name\" : \"a_1\", \"ns\" : \"test.foo\" }),block_allocation=best,block_compressor=,cache_resident=0,checkpoint=(WiredTigerCheckpoint.1=(addr=\"018181e4958480a18281e4f2e09da0808080808080e21fc0dfc0\",order=1,time=1419028177,size=8192,write_gen=2)),checkpoint_lsn=(2,4224),checksum=uncompressed,collator=mongo_index,columns=,dictionary=0,format=btree,huffman_key=,huffman_value=,id=8,internal_item_max=0,internal_key_max=0,internal_key_truncate=,internal_page_max=4KB,key_format=u,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=16k,leaf_value_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=,prefix_compression_min=4,split_pct=75,value_format=u,version=(major=1,minor=1)",

Comment by Githook User [ 11/Dec/14 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-16111 improve style
Branch: master
https://github.com/mongodb/mongo/commit/43c2e08b0bac16217233be7a00f3ebad46909300

Comment by Githook User [ 06/Dec/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16111 fixed memory leak in GetStatisticsValue tests
Branch: master
https://github.com/mongodb/mongo/commit/ee6fa9cf4870f81de1a4005cce2be6a91ac551ac

Generated at Thu Feb 08 03:39:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.