[SERVER-16114] The touch command does not work with WiredTiger storage engine Created: 12/Nov/14  Updated: 27/Oct/15  Resolved: 25/Nov/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc2

Type: Bug Priority: Minor - P4
Reporter: Adam Comerford Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-4450 Document that the touch command via d... Closed
Duplicate
is duplicated by SERVER-16352 2.8.0 RC build for Windows - touch co... Closed
Related
related to SERVER-16797 Remove support for touch command for ... Closed
Operating System: ALL
Steps To Reproduce:

// command run with WiredTiger Storage engine - 2.7.9-pre
 
db.runCommand({ touch: "data", data: true, index: true });
{
	"data" : {
		"numRanges" : 1,
		"millis" : 0
	},
	"indexes" : {
		"num" : 1,
		"millis" : 0
	},
	"ok" : 1
}
 
// command run with mmap v1 (same data set)
 
> db.runCommand({ touch: "data", data: true, index: true });
{
	"data" : {
		"numRanges" : 31,
		"millis" : 304555
	},
	"indexes" : {
		"num" : 1,
		"millis" : 53862
	},
	"ok" : 1
}

Participants:

 Description   

The touch command returns instantly when using WiredTiger storage engine and does not actually load anything into memory. Using mmap v1 storage engine still works as expected.

This may not be possible with WT (and others). If so, we should have the command check and carp if the engine does not support it.



 Comments   
Comment by Githook User [ 25/Nov/14 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-16114 touch cmd returns an error when storage engine does not support it
Branch: master
https://github.com/mongodb/mongo/commit/68f1a779e1a3063ef04f07be460d370e7fd82a93

Comment by Daniel Pasette (Inactive) [ 19/Nov/14 ]

Until it's possible to hook into wt and pull collection and index data at the block level, the touch command will return an error msg.

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