[SERVER-2659] query_yield2 failure Created: 01/Mar/11  Updated: 12/Jul/16  Resolved: 10/Jun/12

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-5772 assert in query_yield2.js Closed
Operating System: ALL
Participants:

 Description   

Test : query_yield2.js ...
MongoDB shell version: 1.8.0-rc1-pre-
connecting to: 127.0.0.1:32000/test
Sun Feb 27 10:09:35 [initandlisten] connection accepted from 127.0.0.1:34049 #27
Sun Feb 27 10:09:35 [conn27] CMD: drop test.query_yield2
Sun Feb 27 10:09:35 [conn27] building new index on

{ _id: 1 }

for test.query_yield2
Sun Feb 27 10:09:35 [conn27] done for 0 records 0secs
Sun Feb 27 10:09:37 [conn27] query test.query_yield2 reslen:36 nscanned:200 { $where: function ()

{ var x = this.n; for (var i = 0; i < 25000; i++) ... } nreturned:0 2378ms
Sun Feb 27 10:09:39 [conn27] query test.query_yield2 reslen:36 nscanned:200 { $where: function () { var x = this.n; for (var i = 0; i < 25000; i++) ... }

nreturned:0 2355ms
Sun Feb 27 10:09:42 [conn27] query test.query_yield2 reslen:36 nscanned:200 { $where: function ()

{ var x = this.n; for (var i = 0; i < 25000; i++) ... }

nreturned:0 2375ms
200 2384
shell: started program /mnt/home/buildbot/slave/Linux_64bit_Weekly_Slow_Tests/mongo/mongo --eval print( 0 == db.query_yield2.find( function(){ var x=this.n; for ( var i=0; i<50000; i++ )

{ x = x * 2; }

return false; } ).itcount() ); 127.0.0.1:32000
sh7815| MongoDB shell version: 1.8.0-rc1-pre-
sh7815| connecting to: 127.0.0.1:32000/test
Sun Feb 27 10:09:42 [initandlisten] connection accepted from 127.0.0.1:34050 #28
start query
assert: 100 is not greater than 111 : undefined
Error("Printing Stack Trace")@:0
()@shell/utils.js:21
("100 is not greater than 111 : undefined")@shell/utils.js:32
(100,111)@shell/utils.js:183
@/mnt/home/buildbot/slave/Linux_64bit_Weekly_Slow_Tests/mongo/jstests/slowWeekly/query_yield2.js:62

Sun Feb 27 10:09:43 uncaught exception: 100 is not greater than 111 : undefined
failed to load: /mnt/home/buildbot/slave/Linux_64bit_Weekly_Slow_Tests/mongo/jstests/slowWeekly/query_yield2.js
Sun Feb 27 10:09:43 [initandlisten] connection accepted from 127.0.0.1:34051 #29
sh7815|
Sun Feb 27 10:09:48 [conn28] query test.query_yield2 reslen:36 nscanned:278 { $where: function ()

{ var x = this.n; for (var i = 0; i < 50000; i++) ... }

nreturned:0 6449ms
Sun Feb 27 10:10:13 process on port 0, with pid 7815 not terminated, sending sigkill
Sun Feb 27 10:10:13 [conn29] end connection 127.0.0.1:34051
Sun Feb 27 10:10:13 [conn28] end connection 127.0.0.1:34050
sh7815| do you want to kill the current op(s) on the server? (y/n):
Sun Feb 27 10:10:18 [conn27] end connection 127.0.0.1:34049

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



 Comments   
Comment by Tad Marshall [ 10/Jun/12 ]

Test timeout has been changed and this failure does not happen in current runs.

Comment by Tad Marshall [ 10/Jun/12 ]

Different issue in the same test.

Comment by Tad Marshall [ 10/Jun/12 ]

This test has been substantially modified recently, but at some point the timeout comparison was changed from 100 ms to 200 ms, and the test does not show this particular failure in recent runs. Will link to current issues with this test, then resolve this ticket.

Comment by Eliot Horowitz (Inactive) [ 02/Mar/11 ]

We should increase the timeout or figure out a better way to test this

Comment by Aaron Staple [ 01/Mar/11 ]

Just a note on what seems to be happening

  • The test expects that it can insert a new document in under 100ms while a long query is running that's expected to be yielding
  • Instead of < 100ms it took 111ms, causing a failure
Generated at Thu Feb 08 03:00:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.