[SERVER-4742] slowWeekly/update_yield1.js test failure Created: 23/Jan/12  Updated: 11/Jul/16  Resolved: 02/Mar/12

Status: Closed
Project: Core Server
Component/s: Concurrency, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The test expects that if an atomic write op is running, a subsequent read op will wait pending completing of that write op. However, in this case the same atomic write op is running before and after the read op runs, and the write op indicates numYields: 0.

Could this be due to a page fault exception aborting the update and retrying it?

<http://buildbot.mongodb.org/builders/Linux%2064-bit%20Weekly%20Slow%20Tests/builds/86/steps/test/logs/stdio>

Sun Jan 22 14:01:07 [initandlisten] connection accepted from 127.0.0.1:33462 #48 (17 connections now open)
{
	"inprog" : [
		{
			"opid" : 12011915,
			"active" : true,
			"lockType" : "write",
			"waitingForLock" : false,
			"secs_running" : 0,
			"op" : "update",
			"ns" : "test.update_yield1",
			"query" : {
				"$atomic" : true
			},
			"client" : "127.0.0.1:33462",
			"desc" : "conn",
			"threadId" : "0x46118950",
			"connectionId" : 48,
			"numYields" : 0
		}
	]
}
assert: [[ ]] != [[
	{
		"opid" : 12011915,
		"active" : true,
		"lockType" : "write",
		"waitingForLock" : false,
		"secs_running" : 17,
		"op" : "update",
		"ns" : "test.update_yield1",
		"query" : {
			"$atomic" : true
		},
		"client" : "127.0.0.1:33462",
		"desc" : "conn",
		"threadId" : "0x46118950",
		"connectionId" : 48,
		"numYields" : 0
	}
]] are not equal : should have been atomic
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("[[ ]] != [[\n\t{\n\t\t\"opid\" : 12011915,\n\t\t\"active\" : true,\n\t\t\"lockType\" : \"write\",\n\t\t\"waitingForLock\" : false,\n\t\t\"secs_running\" : 17,\n\t\t\"op\" : \"update\",\n\t\t\"ns\" : \"test.update_yield1\",\n\t\t\"query\" : {\n\t\t\t\"$atomic\" : true\n\t\t},\n\t\t\"client\" : \"127.0.0.1:33462\",\n\t\t\"desc\" : \"conn\",\n\t\t\"threadId\" : \"0x46118950\",\n\t\t\"connectionId\" : 48,\n\t\t\"numYields\" : 0\n\t}\n]] are not equal : should have been atomic")@src/mongo/shell/utils.js:58
([object Array],[object Array],"should have been atomic")@src/mongo/shell/utils.js:84
@/mnt/home/buildbot/slave/Linux_64bit_Weekly_Slow_Tests/mongo/jstests/slowWeekly/update_yield1.js:79
 
Sun Jan 22 14:01:24 uncaught exception: [[ ]] != [[
	{
		"opid" : 12011915,
		"active" : true,
		"lockType" : "write",
		"waitingForLock" : false,
		"secs_running" : 17,
		"op" : "update",
		"ns" : "test.update_yield1",
		"query" : {
			"$atomic" : true
		},
		"client" : "127.0.0.1:33462",
		"desc" : "conn",
		"threadId" : "0x46118950",
		"connectionId" : 48,
		"numYields" : 0
	}
]] are not equal : should have been atomic



 Comments   
Comment by auto [ 02/Mar/12 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: make update_yeild1 more robust SERVER-4742
Branch: master
https://github.com/mongodb/mongo/commit/b4e9b28b111c177565c68de3939b4af096451a0c

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